![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/12/2011, 14:04
|
| | Fecha de Ingreso: junio-2010
Mensajes: 73
Antigüedad: 14 años, 7 meses Puntos: 1 | |
Devolver array desde funcion tengo una funcion que devuelve un array y este luego lo recorro con un foeach, EL PROBLEMA ES QUE SOLO ME ESTA DEVOLVIENDO UN REGISTRO
NECESITO AYUDA URGENTE
function showResult(){
connect();
$result = mysql_query('SELECT * FROM poll');
$row = mysql_fetch_array($result);
return $row;
}
$player = showResult();
foreach($player as $line){
echo $line['name'].'<br>';
} |