dsp77 Posted June 24, 2010 Share Posted June 24, 2010 i have a php form that inserts the info in a data base but some guy told me that hes registration does not appear and i think its something wrong with his name like O'Casey the quote what should i use htmlentities, stripslashes or both? Link to comment https://forums.phpfreaks.com/topic/205743-problem-with-single-quote-or-double/ Share on other sites More sharing options...
kenrbnsn Posted June 24, 2010 Share Posted June 24, 2010 Whenever you're inserting data into a MySQL database, you should always use the function mysql_real_escape_string on the data first. Ken Link to comment https://forums.phpfreaks.com/topic/205743-problem-with-single-quote-or-double/#findComment-1076612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.