Here is how can you find the number of rows in a result set in PHP:
$result = mysql_query($any_valid_sql, $database_link);
$num_rows = mysql_num_rows($result);
echo "$num_rows rows found";
Showing posts with label How can we find the number of rows in a result set using PHP?. Show all posts
Showing posts with label How can we find the number of rows in a result set using PHP?. Show all posts
Saturday, May 16, 2009
Subscribe to:
Posts (Atom)