salve ragazzi , ho un po trasformato il lavoro che sto facendo, e adesso vorrei chiedervi ,
io da questa funzione ,
Codice 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;
}
dovrei estrarre i valori , adesso nello script faccio
Codice PHP:
<?php echo $staff[0]['nome']; ?>
e mi stampa un unico valore perche?????