RE: [PHP] SQL syntax

From: Date: Thu, 26 Oct 2000 02:10:46 +0000
Subject: RE: [PHP] SQL syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22009@lists.php.net to get a copy of this message
escape it thusly: insert into table1 (content, status) values ('barron\'s', 1) Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com ================================= > -----Original Message----- > From: Lester June Cabrera [mailto:lester@i-quest.com] > Sent: Wednesday, October 25, 2000 12:07 AM > 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 (#22009) next »