I'm using dreamboard and i'm trying track the topics started per user, trying use this code but this ill not working what i need do ?
my code:
//-----------------------------------------------------
//--- Topics By User---------------------------------------
//-----------------------------------------------------
$sql = "SELECT SUM(thrtopic) AS sum
FROM ".BOARD_TCONT_TABLE." WHERE user_id = '".$user_info['user_id']."' AND thrtopic ORDER by thrdate DESC ";
$row = $site_db->query_firstrow($sql);
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
$foruminfo = "".$row['sum']."\n";
$site_template->register_vars("foruminfo", $foruminfo);
unset($foruminfo);
What i need do or change to make show the topics started by each user ?????