Hi, i am trying to count the number of books in my database, the codes are:
//connect to the database and then the follow by the following code
$test = @ ('SELECT count(*) FROM books');
if (!$test) {
die('<p>Error performing query: ' .
mysql_error() . '</p>');
}
echo $test;
somehow this doesn't work, it prints out: Resource id #23
someone please help check to see what is wrong with my code...thanks in advance 🙂