Guest Posted July 26, 2005 Share Posted July 26, 2005 Hi Anyone knows why my linebreaks is missing in my product info? I have to add <br> for every "enter" in the text. Im not a php programmer, and i am a total newbie to osCommerse :blush: (The one responsible for the site has begun in a new job). But if anyone have an easy solution, i will promise to get a learnkey on php programming and manage my self after a while(or employ a person who knows what he is doing) :D Link to comment Share on other sites More sharing options...
gscreations Posted July 26, 2005 Share Posted July 26, 2005 use a bit of script to change the /n carriage returns from the text box to <br> that way you will not have to type in <br> everytime like: <?php echo eregi_replace("\n", "<br />", $row['text']);?> where $row['text'] is the response from the database - this bit you will need to ammend to suit your code. Link to comment Share on other sites More sharing options...
burt Posted July 26, 2005 Share Posted July 26, 2005 Search the forum for; nl2br and you will be more happy. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.