Skip to content

Instantly share code, notes, and snippets.

@ShaneCunn
Created March 20, 2018 20:59
Show Gist options
  • Save ShaneCunn/3d23ccdc030c15b1306ba1806466fa52 to your computer and use it in GitHub Desktop.
Save ShaneCunn/3d23ccdc030c15b1306ba1806466fa52 to your computer and use it in GitHub Desktop.
if (isset($_POST['action']) && !empty($_POST['action'])) {
$action = $_POST['action'];
switch ($action) {
case 'getEMP' :
getEMP($DBconnect);
break;
case 'getProd' :
getProducts($DBconnect);
break;
// ...etc...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment