PDA

View Full Version : displaying mediumtext EXACTLY how it appears in the dB


SpeedStreet
Thu 20th Nov '03, 4:12pm
I have some data I am entering into a database via an online form. I'm kaing it simple so people don't have to use HTML to enter information into a page <think a blog>

When I try to use < P > tags to format my data, it comes without any line breaks. When I use < pre > tags, it ignores table boundries scrolls the data along the page, screwing up my page layout.

Does anyone have any ideas?

SpeedStreet
Thu 20th Nov '03, 6:19pm
DevShed helped:
http://php.net/nl2br

merk
Thu 20th Nov '03, 6:46pm
You could also use <pre style="overflow: x;"> i _think_