Hello, and thanks in advance for any help...
Lets say i have a database table where the most important fields are the date fields (year, month, and day), the article id (auto_id), and the article body text (body).
each article may or may not contain 1 or more related pictures. The pictures are named according to the date. for example, 2002_10_04_01_01.jpg, and 2002_10_04_01_02.jpg belong to the article for October 04th, 2002.
for clarification:
for 2002_10_04_01_02.jpg:
2002 = year
10 = month
04 = day
01 = auto_id
02 = second picture
When i print out the text from the database i also have to include the pictures spread out among the text. I can retrieve the text easy, and the pictures as well. But how do i code it so the pictures spread out evenly among the text? how do i wrap the text around the pictures?
You can see the problem i have. if it was only one picture per article it would be easy, but thats not always the case. I want one picture with the first paragraph, if there only one more picture, i want it half way down the page, if there are more than 2 then maybe every 3rd or 4th paragraph.
Sounds difficult to me.. but you are the experts.. so please help.
Thanks
Mike