Result Force??/

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fernandomaciel
Forum Newbie
Posts: 7
Joined: Mon Jun 07, 2004 3:06 pm

Result Force??/

Post 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??
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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());
fernandomaciel
Forum Newbie
Posts: 7
Joined: Mon Jun 07, 2004 3:06 pm

Post by fernandomaciel »

Gotcha!! Thanks a lot buddy
Post Reply