Profile
Achievement
engel's Recent SnippetsTagged function
- All /
« Prev 1 Next »
Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in < and > with your values.
2
953
posted 16 years ago by engel
Pass a user-inputted variable to this function in order to prevent SQL injection. Example:
mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')");
Instead of:
mysql_query("INSERT INTO table VALUES('" . $_POST["var...
34
5529
posted 16 years ago by engel