Dibi can't count?
aolko opened this issue · comments
aolko commented
Fatal error: Uncaught Dibi\NotSupportedException: Row count is not available for unbuffered queries.
Snippet:
$getAccount = $database->query('SELECT * FROM Accounts WHERE id = ?', $_GET['acc']);
if ($getAccount->getRowCount() >= 1){
echo "found";
} else {
echo "not found";
}
David Grudl commented
Fetch all rows using fetchAll() and count them.