RE: [PHP] " in data
| From: | Robert Sossomon | Date: | Fri, 18 Jun 2004 19:29:35 +0000 |
| Subject: | RE: [PHP] " in data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188609@lists.php.net to get a copy of this message | ||
Nope, I wish it was so, but it is not to be... It puts it into the
mySQL table as " only, which it was doing before, it is in the
extracting from there that I am having the issue.
My code for extraction:
$item_desc = addslashes($Quote['sel_item_desc']);
The value in the HTML document:
value="10in. COMP.PLATE " CONCORDE " 4/125"
Robert
-----Original Message-----
From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com]
Sent: Friday, June 18, 2004 2:58 PM
To: Robert Sossomon; php-general@lists.php.net
Subject: RE: [PHP] " in data
[snip]
I guess I need to figure out how to read my $_POST[data] and parse that
to put in " because that seems to work, but not sure how to make
PHP do that. [/snip]
INSERT INTO table
htmlentities($_POST['yourStuff']);
then when it comes out you should be good