Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2000121

Re: [PHP-DB] Use of ' and " (quotes) From: Matthew Ballard (Matthew <email protected>)
Date: 12/14/00

Use the addslashes function.
http://www.php.net/addslashes
Matthew

At 09:43 PM 12/13/2000 -0800, you wrote:
>Hi--
>
>When a user enters either a single quote (') or a double quote ("), and I
>send it to my MSSQL table, sometimes I get an error message as "an
>incorrect syntax" or "query failed".
>I need to let users enter those characters.
>
>How can I handle single and double quotes on PHP?
>
>Thanks!
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-db-unsubscribe <email protected>
>For additional commands, e-mail: php-db-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>