nessuno ti ha detto di togliere $return. E' array() che non va bene.Originariamente inviato da rocco.mod
ciao piero ,se tolgo il return non mi stampa niente cosa fare ? mi dai una mano grazie ciao
Prova cosi':
Codice PHP:function GroupSelect(){
global $dbcore ;
$sql = mysql_query("select id_groups, nome_group
from groupstaff
order by id_groups asc")
or die(mysql_error());
while( $row = mysql_fetch_assoc($sql)){
$return[$row['id_groups']] = $row['nome_group'];
}
return $return;
}

Rispondi quotando