php/mysql question
php/mysql question
- Started
- Last post
- 5 Responses
- navitronic
http://www.navitronic.co.uk/safeā¦
how can I get the guestbook to display linebreaks from the form input in its entries?
- unfittoprint0
insert at the end of the loop something like
print '';
- navitronic0
I'm not sure what you mean.
but if I wanted to enter this same text on that guestbook.
it would all print on one line. how can I make it understand linebreaks
- anon25730
maybe use the 'nl2br' function on the output ?
- unfittoprint0
sorry, I thought u wanted a line between each post....
Got ya. What you want is this: nl2br. Check out its usage here:
http://pt.php.net/nl2br
- navitronic0
thanks a lot it now works perfectly. cheers