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 Link to comment https://forums.phpfreaks.com/topic/9846-value-dont-care-is-excepted-but-not-dont-care/ 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. Link to comment https://forums.phpfreaks.com/topic/9846-value-dont-care-is-excepted-but-not-dont-care/#findComment-36600 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.