carriage return 'retrieval' from mySQL database
Posted: Sun Feb 15, 2004 11:19 pm
Hi guys,
I have a quick question. I have a form which, when submitted, enters the data into a field in a mySQL database of type text.
When I retrieve the information/text from the database, I need to be able to detect carriage returns and convert them to display a properly formatted piece of text in HTML with either <br> or <p> for every carriage return.
How would I do this?
Thanks.
I have a quick question. I have a form which, when submitted, enters the data into a field in a mySQL database of type text.
When I retrieve the information/text from the database, I need to be able to detect carriage returns and convert them to display a properly formatted piece of text in HTML with either <br> or <p> for every carriage return.
How would I do this?
Thanks.