Use AddSlashes;

string addslashes (string str)

This will add slashes to all characters that require them for SQL queries.


"Brandon Orther" <[EMAIL PROTECTED]> wrote in message
> 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
> 800-994-6364
> --------------------------------------------

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to