Counting database rows in MySQL and PHP

I help out fellow coders a lot on the PHP Freaks forums and I find a lot of new coders grasp PHP quickly but try to do too much in PHP that MySQL can handle in one query. Counting the number of rows in a select query is a good example.

Read more