06-01-2010, 04:20 PM
http://php.net/manual/en/function.mysql-...string.php
http://php.net/manual/en/function.addslashes.php
You could also create an array with unwanted queries, and, if the input contains anything in the array, echo "invalid input";
Those are the first two ideas, but, if you have an imagination, you can come up with different, and fun, ways of protecting input.
http://php.net/manual/en/function.addslashes.php
You could also create an array with unwanted queries, and, if the input contains anything in the array, echo "invalid input";
Those are the first two ideas, but, if you have an imagination, you can come up with different, and fun, ways of protecting input.