I want to know how many results have been fetched from mysql through my query...
+5
A:
This is done by calling mysql_num_rows
on a mysql result resource:
$result = mysql_query("SELECT id, name FROM users");
print mysql_num_rows($result) . " records";
Jonathan Sampson
2009-07-09 11:41:04
Damn. Go to sleep, this was mine!
Paolo Bergantino
2009-07-09 11:41:34
Sleep is for the weak! :)
Jonathan Sampson
2009-07-09 11:49:20
It's all good. I'm awake programming ColdFusion. *shudder* Anyhow, added links to the docs, hope you don't mind. :)
Paolo Bergantino
2009-07-09 11:50:00
Appreciated .
Jonathan Sampson
2009-07-09 12:09:46