On Fri, Mar 02, 2001 at 11:54:50AM +0100, David Guerizec mentioned:
> >  Oh right. Well, that's not to bad then. Is there a handy way of getting
> > the sitegroup I'm in ? 
> $midgard-sitegroup

 So, to do some new cool stuff, I've done;

   $topic = mgd_list_topics(0);
   if(!$topic) {
      echo "mgd_list_topics(0) failed.<br>";
      echo "reason: " . mgd_errstr();
   }else{
      while($topic->fetch()){
        if($topic->sitegroup == $midgard->sitegroup) {
            echo "<TR><TD><IMG alt=\"\" src=\"/blobs/images/grad.gif\" 
border=0></TD><TD> \n";
            echo "<A href=\"/articles/$topic->name\">$topic->name</a></TD></TR>";
        } else {
            echo "<TR><TD> $topic->sitegroup != $midgard->sitegroup</TD></TR>";
        }
   }

 For some reason now, it's saying that $topic->sitegroup is *always* 0. Again
you can see what I mean at: http://midgard.linux.ie/

Kate

-- 
 When I say 'free', I mean 'free': free from bond, of chain or command: 
to go where you will, even to Mordor, Saruman, if you desire. " 
    -- Gandalf, paraphrasing the choice between Free and Non-free software

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

Reply via email to