salve ragazzi , ho un po trasformato il lavoro che sto facendo, e adesso vorrei chiedervi ,
io da questa funzione ,dovrei estrarre i valori , adesso nello script faccioCodice PHP:function GetStaff()
{
global $dbcore;
global $settings ;
$sql = mysql_query("select t. * , gs. id_groups ,gs. nome_group from tech t left join grouptech gs on t. groupid = gs. id_groups order by t. staffid asc ") or die(mysql_error());
$return = array();
while ($row = mysql_fetch_assoc($sql))
{
$return[] = $row;
}
return $return;
}
e mi stampa un unico valore perche?????Codice PHP:<?php echo $staff[0]['nome']; ?>

Rispondi quotando