mgd_list_topics
mgd_list_topics -- List subtopics
Description
`object **mgd_list_topics** (int topic, string sort)`
Minimum version: Midgard 1.1.1
Lists the subtopics of the topic record with id id _. The optional _sort argument can be used to specify the order in which the results will be listed. Possible values are: "alpha", "reverse alpha", "name", "reverse name", "score", "reverse score", "created", "reverse created", "revised", "reverse revised". If the sort parameter is omitted, the returned topics are ordered by score (descending) and name (ascending).
You can list the root topics by specifying 0 for the topic parameter.
Returns an object traversable by calling fetch() if successful. Returns FALSE on failure.
";
echo "reason: " . mgd_errstr();
}else{
while($lst->fetch()){
echo $lst->name . "
\n";
}
}
?>
