PDO rowCount() not working in PHP 5.1.6
The bug If you’re running PHP 5.1.6 and just started using PDO for your database connection, it’s likely you’ll run into quite an annoying bug. Lets test a simple query partly taken from PHP documentation. $calories = 150; $colour = 'red'; $sth = $myPDO->prepare('SELECT name, colour, calories FROM fruit WHERE calories < :calories AND colour... Read more »