note 27249 added to function.msql-num-rows

From: Date: Thu, 28 Nov 2002 22:52:10 +0000
Subject: note 27249 added to function.msql-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-40086@lists.php.net to get a copy of this message
Here is an example: <? (...) $sql= "SELECT * FROM members WHERE name='Wessam' " ; $resultat=mysql_query($sql); $nb = mysql_num_rows("$resultat"); echo "We found $nb members with name Wessam";?> We found 3 members with name Wessam . I hope it will help you :) Xcore -- http://www.php.net/manual/en/function.msql-num-rows.php http://master.php.net/manage/user-notes.php?action=edit+27249 http://master.php.net/manage/user-notes.php?action=delete+27249 http://master.php.net/manage/user-notes.php?action=reject+27249

« previous php.notes (#40086) next »