Validate PHP GET values to improve security

Protect against SQL injections