Código PHP:
function BuscarGestiones() {
//echo "Hola";
$gestiones = array();
$result3 = mysql_query("SELECT EFID28 FROM gestiones WHERE refer='$titular' ORDER BY timestamp_last_change DESC");
while ($row = mysql_fetch_array($result3)) {
$gest = $row['EFID28'] . "\n";
//echo $gest;
//if(is_array($gest))
// foreach($gest as $word) {
// array_push($gestiones,$word);
// }
}
array_push($gestiones,$gest);
return $gestiones;
}
$gestiones = BuscarGestiones();
//echo $gestiones;
echo "<pre>";
print_r ($gestiones);
echo "</pre>";
Muchas gracias.