Jump to content


This topic is now archived and is closed to further replies.


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

Recommended Posts

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
[code]echo "<p class='style3'><img src=http://www.jackgodfrey.org.uk/images/".$code['photo'].">".nl2br($code['content'])."</p>";[/code]

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

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.