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
$stmt = $db->query('SELECT * FROM table'); $row_count = $stmt->rowCount(); echo $row_count.' rows selected';