jjmusicpro Posted August 22, 2008 Share Posted August 22, 2008 I have an insert statment where someone can put in text like - Hell it's a nice day. anytime anyone does a ' it breaks my code what is the escape clase for this? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted August 22, 2008 Share Posted August 22, 2008 I assume you mean in a MySQL insert statement. In that case use the function mysql_real_escape_string() Ken 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.