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 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
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
>



-- 
PHP General Mailing List (http://www.php.net/)
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