Ok, what I want to do is find out the number of rows in a table. The most
obvious solution is to do something like the following:
$sql = "SELECT blah FROM blah WHERE 1";
$result = mysql_query($sql, $db);
$num = mysql_num_rows($result);
If you have a large table, to me that seems like it would be a system hog if
all you want is the number of rows but not the data. I'm not sure if using
mysql_unbuffered_query() would solve this, would it?
Basically my question is this: what is the fastest, most effecient way to
just find out the number of rows in a table?
Thank you.