Newbie problem - Slashes
| From: | kim at jumac dot com | Date: | Thu, 27 Jun 2002 20:59:57 +0000 |
| Subject: | Newbie problem - Slashes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104211@lists.php.net to get a copy of this message | ||
Hello all,
I'm a newbie into PHP and am facing a funny problem.
I have a form with a textarea named address,
I am able to submit the form and enter the data into the database without any problem,but to make
sure that it handles "bad" data too I tested it out with this sentance:
When cheese gets it's picture taken, what does it say?
then "previewed" it and the output was, (note the slash )
When cheese gets it\'s picture taken, what does it say?
(even entered into the database without a problem)
so I further tested it with: (note the " instead of the ')
When cheese gets it"s picture taken, what does it say?
and the output was:
When cheese gets it\"s picture taken, what does it say?
but when I looked in the database it only showed
When cheese gets it\
any idea what the problem is? is it my fault or PHP's or MySql's?
sorry if its a bit confusing, if need be I can send you all the 3 files i'm using and the table
structure, kindly help.
- Kim.