> I solved the problem. I needed the id number of the news cathegory and i
> found it (when i moved over the cathegory name with the mouse) in the
> statusline of my browser.

I see , 
You use nadmin.
So the simplest way for You is use:

<?

$news =  mgd_get_topic_by_name ($topic_id, "news");
// topic news name may contain spaces so it may be "news for my site"
$article = mgd_list_topic_articles($news->id);

?>

It is usefull when you create page and want to use this $news->id many times
while it is defined once.
If it is only for one page , use its ID directly. This way you have one querry less.
And do not forget: after database exporting to another host news ID may be different.


Piotras


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to