Right now I have a PHP file that does a MYSQL query and then counts rows like this:
$count=mysql_num_rows($result); if ($count == 1) { $message = array
Maybe you can use PDO's "fetchAll" method, which returns an array containing all the SELECT results. Then use "count" method to count the array's rows.
Ex:
$rows = $stmt->fetchAll(); $num_rows = count($rows);