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

2001-09-10 Thread Moody
> 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 \' http://www.php.net/manual/en/function.addslashes.php -- PHP General Mailing List (http://www.php.net/) To unsubscrib

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

2001-09-10 Thread Alistair Austen
Use AddSlashes; string addslashes (string str) This will add slashes to all characters that require them for SQL queries. Alistair "Brandon Orther" <[EMAIL PROTECTED]> wrote in message 00b401c13a12$fde59b30$0a00a8c0@webintel">news:00b401c13a12$fde59b30$0a00a8c0@webintel... > Hello, > > Is ther