note 13487 deleted from function.mysql-num-rows by didou

From: Date: Sat, 17 May 2003 21:28:12 +0000
Subject: note 13487 deleted from function.mysql-num-rows by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48279@lists.php.net to get a copy of this message
Note Submitter: henrique@connection.com.br well, if you have a php < 4 and recive some error from mysql_num_rows() because the result have no query you can use the follow: if ( ($query = mysql_query("SELECT * FROM tb")) && mysql_num_rows($query) ) { ... } that´s all

« previous php.notes (#48279) next »