<?php $db = sqlite_open('mysqlitedb');$result = sqlite_query($db, "SELECT * FROM mytable WHERE name='John Doe'");$rows = sqlite_num_rows($result); echo "Number of rows: $rows";?>
<?php $db = new SQLiteDatabase('mysqlitedb');$result = $db->query("SELECT * FROM mytable WHERE name='John Doe'");$rows = $result->numRows(); echo "Number of rows: $rows";?>