Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Missing line breaks in produckt info


Guest

Recommended Posts

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

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

Archived

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

×
×
  • Create New...