MySQL Forums
Forum List  »  PHP

Re: handling nasty characters in MySQL with php
Posted by: chris hearn
Date: April 22, 2005 07:37AM

thanks for comment,
Is it needed to apply htmlentities($mytext) before storing data ?

Where does addslashes/stripslashes come in to all this?
must i addslashes($mytext) to all form fields before storing in mysql table, and stripslashes() when get it out, and before displaying?

What is best sequence when taking user data from a form, store it in table field, then get it back out and fill is a browser form feed with echo $mytext;?

Options: ReplyQuote

Written By
Re: handling nasty characters in MySQL with php
April 22, 2005 07:37AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.