I am trying to put a general purpose function together that will sanitize input to a Mysql database. So far this is what I have:
function sanitize($input){
Use:
mysql_real_escape_string()
This will prevent bad data like DROP TABLE ;)