I am using count function to get the number of rows buffered in a resultset.
But it always returns count as one even if resultset is empty.
Please see the co
Call numRows() on the result set.
From http://php.net/manual/en/function.sqlite-num-rows.php
query("SELECT * FROM mytable WHERE name='John Doe'"); $rows = $result->numRows(); echo "Number of rows: $rows"; ?>