Forum style messaging
Hi again,
Another question:
I am also creating my own phpMySQL based forum - similar to this one but obviously simplified.
I want to know how I can get the output of a message to include line breaks.
At the moment, if I input a message in the textarea box, add it to the db etc. when I retrieve it, the text is on one continuous line.
I found using <pre> had some effect, but if the line of text was too long, it spilled out of my template.
SO... If you could tell me how I could add a
between each line when I insert the values to the database, that would be of great help.
Thanks.
Darren.
|