MySQL or maybe MyISAM table does not except the latter value. How do I get around this?
INSERT INTO table SET column = '$x' <----inserts
INSERT INTO table SET column = '$y' <----Does not insert
Value 'Dont Care' is excepted but not 'Don't Care'
1 reply to this topic
Posted 17 May 2006 - 02:15 PM
A single-quote is a special character, which means that it needs to be escaped (i.e. predeeded) with a backlash. Just be careful, since PHP also supports escaping quotes, meaning that if you might have to escape it twice, depending on how you declare your string ilterals. In this case, since your string is in doubles, you shouldn't have a problem.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users