I've read a few threads on the topic and visited several other sites that discuss sql injection.
I just wondered why what seems to be a simple solution such as using ascii codes for non-alpha-numeric characters doesn't work as a preventive measure?
something like this:
$input=$_POST['input'];
$stuff=array("'","\"",">","<",".","%","&",";","=");
$codes=array("p","k","\","[","w","n","o","£","¥");
$newvar=str_replace ($stuff,$codes,$input);