Re: Use of ' and " (quotes)
| From: | Matthew Ballard | Date: | Thu, 14 Dec 2000 06:20:56 +0000 |
| Subject: | Re: Use of ' and " (quotes) | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5234@lists.php.net to get a copy of this message | ||
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@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net