On Tue, Nov 12, 2002 at 01:12:02PM +0100, Georg Berner wrote:
> >
> > If you want show all these images, you can use something like:
> >
> > <?php
> > $list = $article->listattachments();
> > while($list && $att = $list->fetch()) {
> >   echo "<img src='$mgd_root/images/$att->id'>";
> > }
> > ?>
> >
> This is more or less what i did. Your code is just looking a bit tighter.
> Actually I want to list the attachments belonging to one article becouse i
> want to write all the text belonging to the images in the article and (if I
> find a way) also a thumbnail of the image.
> but now it seems that i can't  find out anymore which article the image was
> attached to.
> I need a list of objects that have two pictures (thumb and big-one), two
> kinds of text (title and description), and all should possibly be handled by
> the user.  For now it should work with (sub-)topics, that the user has to
> create. But i'm sure I'will need the article - attachment - connection in
> future. Do you have an idea?

Just walk throught all subtopics/articles and look for topics/articles
having at least two attachments (named 'thumb' and 'big' for example) and
fields that you're using for title and description aren't empty.

I'm wrong again? :)

--
Regards,
Sergei Dolmatov.
---
As far as we know, our computer has never had an undetected error.
                -- Weisert

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

Reply via email to