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? Quote Link to comment 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 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.