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? Link to comment https://forums.phpfreaks.com/topic/120856-escape-from-insert-statment/ 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 Link to comment https://forums.phpfreaks.com/topic/120856-escape-from-insert-statment/#findComment-622968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.