Using SQlite3 in PHP how to count the number of rows in a result set?

$db = new SQLite3('filename.db3');
$count = $db->querySingle("SELECT COUNT(*) as count FROM tablename");
echo $count;

Leave a Comment