Profile
Achievement
![first submission:submitting first snipplet first submission:submitting first snipplet](/img/badge/badge_2.png?v3)
![popular snippet:having a snipplet with 20 favorites popular snippet:having a snipplet with 20 favorites](/img/badge/badge_3.png?v3)
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
851
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
5046
posted 16 years ago by engel