Re: mysql_num_rows error

From: Date: Tue, 08 Oct 2002 15:31:07 +0000
Subject: Re: mysql_num_rows error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119280@lists.php.net to get a copy of this message
Well, those error normaly appear when you've got something wrong in your sql statement. Make sure there is some information stored in your database, empty tables are sometimes troublesome. What do you use $link for? $sql = "select USUARIO from docente where USUARIO = '$usuario'"; $result = mysql_query($sql, $link); if (mysql_num_rows($result) == 1) Bye ******************************************************* Wilmar Pérez Network Administrator Library System Tel: ++57(4)2105145 University of Antioquia Medellín - Colombia 2002 *******************************************************

« previous php.general (#119280) next »