Skip to content

Instantly share code, notes, and snippets.

@uberbrady
Last active December 29, 2015 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uberbrady/7712487 to your computer and use it in GitHub Desktop.
Save uberbrady/7712487 to your computer and use it in GitHub Desktop.
What I *ACTUALLY* was trying to say...
$valid_statuses=Array("RTD","Deployable","Whatever","Blah");
if(!in_array($_GET['status'],$valid_statuses)) {
some_kind_of_error();
} else {
do_query(Array("param"=> "param", "status" => $_GET['status']));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment