dragonusthei Posted October 31, 2007 Share Posted October 31, 2007 Hi. My site takes information from one database and puts it into another simply with SELECT * and INSERT INTO It works perfect Except! When the user enters a ' into the data when this happends it does not transfer the data it must throw out some kind of error. I have tryed addSlashes with no luck im depsrate to get this sorted! any one help me? Quote Link to comment https://forums.phpfreaks.com/topic/75547-problem-with/ Share on other sites More sharing options...
wildteen88 Posted October 31, 2007 Share Posted October 31, 2007 use mysql_real_escape_string prehaps. Also post some code on how you are applying addslashes. Quote Link to comment https://forums.phpfreaks.com/topic/75547-problem-with/#findComment-382158 Share on other sites More sharing options...
kenrbnsn Posted October 31, 2007 Share Posted October 31, 2007 Addslashes should have worked, but a better function to use is mysql_real_escape_string() How did you use the addslashes() function and why do you think it didn't work? Ken Quote Link to comment https://forums.phpfreaks.com/topic/75547-problem-with/#findComment-382163 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.