Jump to content

Recommended Posts

Don't do it like that.  I don't feel like getting into the details, but that pulls all of the rows and then counts them.  If you only care how many rows there are, get MySQL to send back that.

 

 

$q = mysql_query("SELECT COUNT(blah) FROM bleh");

$r = mysql_fetch_row($q);

echo $r[0];

Guest
This topic is now 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.