i have a script in php and mysql and i want to secure its inputs against sql enjection.
i know some functions but really don't know where and how exactly should use them.
functions are:
nl2br()
preg_replace()
htmlspecialchars()
mysql_real_escape_string()
htmlentities()
and my inputs are:
username
password
mobile
email
url
description (text area)
anyone can explain for me what should i do?
thanks