faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 8 people (88%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

How do you print the number of result from a mysql search?

Sep 7th, 2000 13:50
Craig Fratrik, Yvo SChaap, Ben Udall,


<CODE>
$results = mysql_query($query);
$numresults = mysql_num_rows($results);
</CODE>
http://www.php.net/manual/function.mysql-num-rows.php