Monday, November 03, 2008

How get Topics IN RunCMS

global $db;
$table=$db->prefix("topics");
$rt= new XoopsTopic($table,0);
$topics=$rt->getAllChildTopics();
foreach($topics as $topic)
{
echo $topic->topic_id;
echo $topic->topic_title;
}

No comments:

Post a Comment