Jump to content


Photo

Is it possible to position an image in the middle of a nl2br?


  • Please log in to reply
No replies to this topic

#1 AdRock

AdRock
  • Members
  • PipPipPip
  • Advanced Member
  • 911 posts

Posted 03 September 2006 - 03:49 PM

I have quite a lot of text in a record in my database and have about six paragraphs on the page when it's displayed.

I used this line of code to display the record on the page
echo "<p class='style3'><img src=http://www.jackgodfrey.org.uk/images/".$code['photo'].">".nl2br($code['content'])."</p>";

is it possible to have in the middle of the page, whcih would be in the middle of the nl2br, another image that was stored in the database.

I currently have to have 2 records displayed per page but there is a noticeable spacing size difference between the last paragraph and new paragraph
If your topic has been solved, please mark the topic as SOLVED.

This helps others from identifying which topics need help still




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users