Help w/ quotes/html and data from MySQL
| From: | Shane McBride | Date: | Tue, 23 Jan 2001 21:47:50 +0000 |
| Subject: | Help w/ quotes/html and data from MySQL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36273@lists.php.net to get a copy of this message | ||
I have a field in MySQL that holds data that may look like this:
<b>Rose Painting</b>"Looks really nice, blah, blah"<b>25.00</b>
Now, I want to pull that data back into a form <textarea> to edit. Here's how I have
unsuccessfully been doing it:
?>
.... beginning code
<td>Description:</td>
<td><textarea name=\"description\" value='$description'
cols=\"50\" rows=\"5\"></textarea></td>
...ending code
?>
I looks like that the embedded html in the MySQL data is actually being "rendered" (for
the lack of a better term).
How can I get the whole chunk of data back into the form?
TIA,
-Shane