Hello again,
I have a table which contain articles. Each article contains one or more pictures stored in a directory.
My problem is that I need to spread the pictures out among the text of the article, alternating between left and right align.
For example, if there is one picture for the article, it should appear at the top of the article, right aligned.
If there is two pictures for the aticle, one should be at the top, right aligned, the second should be halfway down the page, left aligned.
So on and so forth...
There will rarely be more than 4 pictures for one article. Someone suggest i used the explode() function. Another person suggested i count the number of characters in the article and divide by the number of pictures.
How would i count the number of characters in a string? (thats what the body of the article is placed in before output) and how do i divide so that the first picture always apears at the top?
And does it matter if in the database i use <BR> tags to denote seperate paragraphs? (The <Br> tags is for output purposes.)
Thanks in advance for any help.
Mike