I created a function to recall the amount of posts in a certain category, in a forum. Here is the code for the function:
function num_posts_evedisc() {
$sql3 = "SELECT COUNT(category) FROM forum_question WHERE category=3";
$query3 = mysql_query($sql3);
return($query3);
}
And this is the response I got, echo-ing it:
Resource id #14
(In my database, I have table forum_question and the column category. I tried replacing the (category) with (id) and that didn't work either.)
Thanks!