Re: quotes
| From: | Alexander Wagner | Date: | Thu, 12 Jul 2001 10:43:19 +0000 |
| Subject: | Re: quotes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57566@lists.php.net to get a copy of this message | ||
Heidi Belal wrote:
> I have a problem using apostrophes/single quotes.
> I am using PHP and MySQL. The user enters data into
> the text field and everything goes ok, until an
> apostrophy/single quote is added in the middle of the
> text - then disaster occurs!
Use addslashes() on the text before inserting it into the database.
http://php.net/addslashes
regards
Wagner
--
Madness takes its toll. Please have exact change.