how to stop mysql injector on registration page
Started on the old forum in December 2010 · view the original in the archive · old links redirect here
use mysql_real_escape_string() function
Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in
you can use also ereg_replace() function like
$str=ereg_replace("[^a-zA-Z0-9_ -]", "", $_REQUEST['query']);
before passing any variable from form into sql query, pass it from that function. eg
$xyz=mysql_real_escape_string($_POST['xyz']);
Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in