Re: SQL syntax

From: Date: Wed, 25 Oct 2000 19:10:18 +0000
Subject: Re: SQL syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21903@lists.php.net to get a copy of this message
Good question. addslashes() is your friend. PHP Manual - Addslashes Function : http://www.php.net/manual/function.addslashes.php String Tutorial : http://www.zend.com/zend/tut/using-strings.php Towards the bottom of the tutorial explains it a bit. Overall it's one of my favorite tutorials so please read it! :-) Philip Olson -- be outside the box. On Wed, 25 Oct 2000, Lester June Cabrera wrote: > 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 (#21903) next »