http://www.owasp.org/asac/input_validation/sql.shtml
dont know if that helps but... worth a shot
rioter