Jump to content

mysql_num_rows


scheols

Recommended Posts

[code]<?php
$q = "select * from yourtablename";
$rs = mysql_query($q) or die("Problem with the query: $q <br>".mysql_error());
echo "There are " . mysql_num_rows($rs) . " in the table yourtablename";
?>[/code]

Ken

Edit: Beaten by 1 second by AndyB (GMTA)
Link to comment
https://forums.phpfreaks.com/topic/16160-mysql_num_rows/#findComment-66796
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.