I need to retrieve the number of rows in my qrec_id in my table tbl_link_qa, which has values in them.
mysql_query("SELECT COUNT(qrec_id) from tbl_link_qa")or die(mysql_error());
But this doesn't seem to give any output.
----updated:
$x=0;
mysql_query("SELECT COUNT * from tbl_link_qa WHERE qrec_id != $x");
mysql_query()alone will not give any output. Check out the manual page for a full working example: php.net/manual/en/function.mysql-query.php