note 27249 deleted from function.msql-num-rows by didou
| From: | didou@php.net | Date: | Thu, 10 Jul 2003 08:07:41 +0000 |
| Subject: | note 27249 deleted from function.msql-num-rows by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51830@lists.php.net to get a copy of this message | ||
Note Submitter: xcore@no2at.com
----
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