I am a beginner but did it like this, with a little help from my friends!!
$query = "INSERT INTO guests ";
    $query .= "(guest_id, guest_name, ";
    $query .= "guest_email, guest_time, guest_message) ";
    $query .= "values(0000, '$name', '$email', NULL, '" .
str_replace("\n","<br>", $message) . "')";

Where $message is the TEXTAREA box submitted
All the best

-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 8:50 PM
Subject: [PHP-DB] MySQL/PHP Form & Addslashes() command

Alright, you have a textarea in a form, say some one
right this:

Today, during the meeting blah blah blah... (now they
want to start a new paragraph, so they press enter

After the construction meeting blah blah blah...

Ok...  Now the question.  The addslashes() command
won't add the NULL spots to make it a new paragraph
when you open this row in a page.  How do I get that
to work...

Thank You,

James Smith

Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to