Is there a quicker way?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

timvw wrote:My experiments show me that the combination of select and mysql_num_rows is faster than select and select count in that case...
But we are talking here about which is faster for counting the rows in a specific table. No wonder that you got these results... You calculated the time it took the script to select the rows as well.
Post Reply