also: mysql_escape_string()
will format data properly for use in MySQL queries

> -----Original Message-----
> From: Alexander Wagner [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] quotes
> 
> 
> 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.
> 
> -- 
> PHP General 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]
> 

-- 
PHP General 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