How to Get the Number of Rows in a MySQL Result Resource Using PHP
MySQL is a flexible database engine, and today I’m going to discuss ways to fetch the number of rows in your MySQL result resource. The first thing I want to mention is MySQL’s built-in function COUNT(field_name). Using this function you can easily get the quantity of results for a certain condition. This would be used [...]