I found the problem:
$lst->$owner
should be
$lst->owner
Vincent Stoessel wrote:
> Hello ,
> I am trying to get a list of all the root topics for
> an owner with the id of 3. This code does not seem to do the trick.
> Can someone give me a pointer?
>
>
> <!-- news topics -->
>
> <?php
> $lst = mgd_list_topics(0);
> if(!$lst) {
> echo "mgd_list_topics(0) failed.<br>";
> echo "reason: " . mgd_errstr();
> }else{
> while($lst->fetch()){
>
> if ($lst->$owner == 3 ) {
> echo $lst->name . "<br>\n";
>
> }
>
> }
> }
> ?>
>
>
--
Vincent Stoessel [EMAIL PROTECTED]
Java Linux Apache Mysql Php (JLAMP) Engineer
(301) 362-1750 Mobile (410) 419-8588
AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]