Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged sql



1 2 Next »
2 1436 posted 16 years ago by jonniespratley
I am currently still working on this, and will make changes.
1 1283 posted 16 years ago by jonniespratley
0 1242 posted 16 years ago by eden159
2 1197 posted 16 years ago by jtkendall
0 1275 posted 17 years ago by stavelin
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 9747 posted 17 years ago by engel
Created for my own purposes, thought I'd share though ;) copy paste at the top of your file and it does the magic :)
31 7165 posted 17 years ago by peteypablonz
1 1252 posted 18 years ago by drwitt
1 1043 posted 18 years ago by nicolaspar
Building a SELECT with conditional WHERE parts, given from form-get parameters.
1 1073 posted 18 years ago by assbach
1 2 Next »