i'm using the following to count the number of rows in my table:
$book_count = query("SELECT status FROM scifi_book WHERE read = $uid");
(count($book_count));
echo $book_count;
and i get the following error:
Notice: Array to string conversion on line 167
(which is the line echo $book_count;
)
FIY, the query
function is defined and works fine. Never had any issues to insert, select, update and delete.
Am I missing something here?