Page 1 of 1

Result Force??/

Posted: Mon Jul 12, 2004 2:25 pm
by fernandomaciel
classdb.inc.php line 86 mysql_num_rows()
suppllied argument is not a valid MSQL result force

(else {
$this->res = @mysql_query($sql,$this->bd->id);
$this->nrw = @mysql_num_rows($this->res);
})


what the heck is that? And how in this world do I resolve it??

Posted: Mon Jul 12, 2004 2:28 pm
by feyd
your query failed...

add "or die(mysql_error())" like so:

Code: Select all

$this->res = @mysql_query($sql,$this->bd->id) or die(mysql_error());

Posted: Mon Jul 12, 2004 2:33 pm
by fernandomaciel
Gotcha!! Thanks a lot buddy