There is no such thing as "the" root topic.
There can be several root topics. Maybe you call them more accurately: "top
level topics". These are the topics where the parent topic id is 0 (meaning
there is no parent topic).
You can obtain them as follows:
<?php
$lst = mgd_list_topics(0);
if(!$lst) {
echo "mgd_list_topics(0) failed.<br>";
echo "reason: " . mgd_errstr();
}else{
while($lst->fetch()){
echo $lst->name . "<br>\n";
}
}
?>
"alex midgard" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> whow y get the root topic????
> whow y get the id of the Root topic???
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]