PDA

View Full Version : storing info in mysql database



jvv
December 1st, 2000, 07:08
This will probably sound stupid, but I'm trying to save some text in a mysql database. But when I retrieve it, the text shows up again, but no longer in paragraphs...

Anyone know how to do this ?

(using PHP4, mySQL)

Koolguy
December 1st, 2000, 11:01
Do you mean print it out as a html page or the raw text?

jvv
December 1st, 2000, 11:18
What I am doing is accepting text from a form and store it in a database. I want to retrieve the data the way it was sent in, so with paragraphs and stuff... so in a sense, yes, turn it into html.

Woofcat
December 1st, 2000, 13:49
nl2br($text)