ciao a tutti non so perche mi e uscito un errore strano :lo script e questo e una funzione che mi dovrebbe dare l id e il nome del gruppo da inserire in un array ed inviare a smartycodice:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 39 bytes) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\supp\includes\function_staff.php on line 46prima del ciclo while c era un foreach , ma mi restituiva un unico valore sarebbe a dire il primo dato della tabella ho sostituito cosi e mi e uscito questo fatale erroreCodice PHP:function GroupSelect(){
global $dbcore ;
$sql = mysql_query("select * from groupstaff order by id_groups asc")or die(mysql_error());
$row = mysql_fetch_assoc($sql);
while(list($key,$val) = each($row )){
$row[] = $key;
}
return $row;
}

Rispondi quotando
