crouchjay Posted May 17, 2006 Share Posted May 17, 2006 MySQL or maybe MyISAM table does not except the latter value. How do I get around this?$x="Dont Care"$y="Don't Care";INSERT INTO table SET column = '$x' <----insertsINSERT INTO table SET column = '$y' <----Does not insert Quote Link to comment Share on other sites More sharing options...
fenway Posted May 17, 2006 Share Posted May 17, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.