I’ve switched a couple of years ago to PDO to manage all the database actions. PDO (PHP Data Objects) is an object orientated extension that requires at least php 5.1. In many cases software improves and is often more easy to use. But why did the php development-teamĀ  forgot to write a similar function like mysql_num_rows?

In this case you always need to run an extra query to retrieve the total records. See the examples below.

Continue Reading »

Top of Page