Hello,
I using the following query, which i have placed in a external class file:
/***************************************************
Get Count of Replies
**************************************************/
function getCountofReplies($id)
{
$count = mysql_query("SELECT COUNT(*) FROM ForumReply
WHERE TopicID = '$id'") or die(mysql_error());
return $count;
}
The problem im having is that im not sure how i display a 'count' result from an external class file. For my other result im using something like:
$rs = $forum->getTopics();
Thanks for any help or advice in advance.