Modified php code to protect against mysql injection attacks.