I have a record edit link that GETs a 7 character alphanumeric text string which is always ZZZZ111 in structure and is then used in a MySQL query to pull all related data for that record id.
Is mysql_real_escape_string()
all I need in terms of sanitizing this $_GET['id']
? Or are there more steps to take to protect my database?