RE: [PHP] quotes

From: Date: Thu, 12 Jul 2001 20:28:23 +0000
Subject: RE: [PHP] quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57642@lists.php.net to get a copy of this message
also: mysql_escape_string() will format data properly for use in MySQL queries > -----Original Message----- > From: Alexander Wagner [mailto:wagner@globalpark.de] > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#57642) next »