Re: Convert a string so it is valid for a sql query

From: Date: Mon, 10 Sep 2001 16:34:28 +0000
Subject: Re: Convert a string so it is valid for a sql query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66775@lists.php.net to get a copy of this message
Use AddSlashes; string addslashes (string str) This will add slashes to all characters that require them for SQL queries. Alistair "Brandon Orther" <orther@webintellects.com> wrote in message news:00b401c13a12$fde59b30$0a00a8c0@webintel... > Hello, > > Is there a function to convert a string so it is a valid string of text > for a SQL query? AN example would be a string of text that has ' in it > would be converted to \' > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > brandon@webintellects.com > 800-994-6364 > www.webintellects.com > -------------------------------------------- > >

« previous php.general (#66775) next »