bluedollar
Programmer
I have a text area on a form:
echo'<P>Overview:<br><textarea type="textarea" rows="10" cols="50" name="overview">'.$result2.'</textarea>';
The info that the user enters I store in a MySQL database:
$SQL = "update conference set overview = '$overview' where conf_id = '$id'";
This works fine, however when the user enters new lines in the text area these are not stored in the database. eg. user enters:
This is a test.
This is a test2.
Is stored as:
This is a test. This is a test2.
How do I represent the new lines in the database?
Any help would be greatly appreciated.
Thanks
Dan
echo'<P>Overview:<br><textarea type="textarea" rows="10" cols="50" name="overview">'.$result2.'</textarea>';
The info that the user enters I store in a MySQL database:
$SQL = "update conference set overview = '$overview' where conf_id = '$id'";
This works fine, however when the user enters new lines in the text area these are not stored in the database. eg. user enters:
This is a test.
This is a test2.
Is stored as:
This is a test. This is a test2.
How do I represent the new lines in the database?
Any help would be greatly appreciated.
Thanks
Dan