using % and £ in strings
| From: | bob pilly | Date: | Tue, 10 Jun 2003 13:45:13 +0000 |
| Subject: | using % and £ in strings | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150906@lists.php.net to get a copy of this message | ||
Hello
I am trying to let a user enter notes about an
appointment but are having errors when trying to write
their input to a database.
The users input goes into string $appnotes
$query2="update appresult set appresult =
'$appointmentresult',product='$product',fees='0',appnotes='$appnotes'
where refno ='$refno'";
This gives the following error if the user inputs
special characters like % & or £.
Warning: Sybase message: Unclosed quotation mark
before the character string 'To p'. (severity 15) in
updaterecord.php on line 81
Any help or pointing me to some good documentation on
this would be greatly appreciated!
__________________________________________________
Yahoo! Plus - For a better Internet experience
http://uk.promotions.yahoo.com/yplus/yoffer.html