note 13487 added to function.mysql-num-rows.php

From: Date: Mon, 18 Jun 2001 22:25:45 +0000
Subject: note 13487 added to function.mysql-num-rows.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14263@lists.php.net to get a copy of this message
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 http://www.php.net/manual/en/function.mysql-num-rows.php

« previous php.notes (#14263) next »