codes when getting and putting data to database,Â
you should aware of simple SQL injection prevention rules.Â
So to prevent sql injection you should escape any variable
that you are going to use in the database accessing codesÂ
In the following code variable escaping shown as an example -Â
$queryResult = mysql_query ("SELECT * FROM WHERE Example_table ex_field = \" " . mysql_real_escape_string( $ ex_field ) . " \ " " ) ;Â