ciao la classe e :l errore e:Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\supp\includes\function _db.php on line 75Codice PHP:
function query($sql) {
$result = mysql_query($sql,$this->dbcore);
return $result;
}
function insert_id(){
$result = $this->query($sql);
$id = mysql_insert_id();
return $id;
}
function getrow($sql) {
$result = $this->query($sql);
$returned = mysql_fetch_assoc($result);
@mysql_free_result($result);
return $returned;
}
function getlist($sql) {
$returned = array();
$result = $this->query($sql);
while ($row = mysql_fetch_assoc($result)) {
$returned[] = $row;
}
@mysql_free_result($result);
return $returned;
}
function getnumrows($sql) {
$result = $this->query($sql);
$num = mysql_num_rows($result);
@mysql_free_result($result);
return $num;
}
la riga 75 e while ($row = mysql_fetch_assoc($result)) {

Rispondi quotando