simple PHP $_GET sanitization question -
I have a record editing link which is a 7 alphnumeric text string that is always ZZZZ111 in the structure and then its Use MySQL query to pull all related data for that record ID.
What mysql_real_escape_string ()
I need it in the case of codification $ _ GET ['id']
? Or have more steps to keep my database safe?
mysql_real_escape_string ()
will avoid any malicious characters Additionally, you To ensure that users are actually entering a valid input, such as / ^ [A-Za-z] {4} \ d {3} $ /
one can use regex Are there.
Comments
Post a Comment