I need to make a query in my SQLite3 database using PHP and this is my code and it's working:
# Set access to data base...
$db = new SQLite3('./Data/myDB.sqlite');
# Set the query ...
$q="SELECT * FROM my_table WHERE key = '123'";
# Prepare for the query ...
$stmt = $db->prepare($q);
# Execute the query ...
$results = $stmt->execute();
Now, how to count how many records there are in my result? Suggestions / examples?