RE: [PHP] SQL syntax

From: Date: Wed, 25 Oct 2000 23:02:35 +0000
Subject: RE: [PHP] SQL syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21962@lists.php.net to get a copy of this message
In MySQL? You use "\" like: INSERT INTO table1 (content, status) VALUES('Barron\'s', 1) > -----Original Message----- > From: Lester June Cabrera [mailto:lester@i-quest.com] > Sent: Wednesday, October 25, 2000 5:07 PM > To: php-general@lists.php.net > Subject: [PHP] SQL syntax > > > If I need to insert a value with a single quotes, like: > > insert into table1 (content, status) > values ('barron's', 1) > > What will I do so that the single quote will still be stored without > generating error during SQL execution? > > > Thanks, > Lester > > > -- > 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 (#21962) next »