php - How can I protect my site from SQL injection? -


this question has answer here:

as can see have error in site:

enter image description here

and alrady put @:

$q = @$_get['q']; 

if $q used in sql query need handle properly.

but display in-page echo or equivalent use htmlentities($q)1 part.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -