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
Can be like that...
$numRows = $conn->query("SELECT COUNT(*) FROM yourtable")->fetchColumn(); echo $numRows;