garyneedham7202 Posted May 21, 2013 Share Posted May 21, 2013 Hi Can anyone help? I want to store some text in a text field but the text contains an ' Apostrophe for example i want to store the following text zegrep -ha ' (RCV|SND).*ML3407.*(GRSG)' but it will not save with these Apostrophes if I remove them it will save Can I use a different type of field that will except these Apostrophes Quote Link to comment https://forums.phpfreaks.com/topic/278229-apostrophe/ Share on other sites More sharing options...
Psycho Posted May 21, 2013 Share Posted May 21, 2013 You need to escape the input - which you should be doing anyway. Without knowing what type of database and functions you are currently using, it's impossible to say how you should fix it. But, I'm guessing mysql_real_escape_string() is what you need. Quote Link to comment https://forums.phpfreaks.com/topic/278229-apostrophe/#findComment-1431308 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.