mysql_num_rows error

From: Date: Tue, 08 Oct 2002 15:56:32 +0000
Subject: mysql_num_rows error
Groups: php.general 
Request: Send a blank email to php-general+get-119269@lists.php.net to get a copy of this message
I have a file. I'll paste from line 32 to 34 <? ..... $sql = "select USUARIO from docente where USUARIO = '$usuario'"; $result = mysql_query($sql, $link); if (mysql_num_rows($result) == 1) { // line 34 .... ?> I get the next warning: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/olimpiad/public_html/base/alta1.php on line 34 I'm running the script on a linux server. could someone help me. Thank you.

« previous php.general (#119269) next »