PHP security & SQL security

PHP security & SQL security Remember For PHP Processing: strip_tags() removes any PHP or HTML tags from a string nl2br() converts newline characters in the input to
HTML tags. htmlspecialchars() will entity-quote characters such as <, > and & remaining in the input after strip_tags() has run. This prevents them being misinterpreted as HTML and makes sure they are displayed properly in any output. Remember For SQL Processing: When entering data into a database, addslashes() will escape characters with a special meaning to SQL, such as ' or ; by prefixing them with a backslash (\) Run stripslashes() when pulling data back out from the database.

6 comments:

Anonymous said...

Greets to the webmaster of this wonderful site. Keep working. Thank you.
»

Anonymous said...

Hmm I love the idea behind this website, very unique.
»

Anonymous said...

Really amazing! Useful information. All the best.
»

Anonymous said...

Very best site. Keep working. Will return in the near future.
»

Anonymous said...

Greets to the webmaster of this wonderful site! Keep up the good work. Thanks.
»

Anonymous said...

I say briefly: Best! Useful information. Good job guys.
»