Skip to content

Instantly share code, notes, and snippets.

@davidchc
Created September 8, 2017 21:35
Show Gist options
  • Save davidchc/5ebf1c908eec1963cc17330ac411c98a to your computer and use it in GitHub Desktop.
Save davidchc/5ebf1c908eec1963cc17330ac411c98a to your computer and use it in GitHub Desktop.
<?php
$action = isset($_GET['action']) ? 'insert';
if($action == 'insert') {
//aqui faz a inserção
}
if($action == 'update') {
//aqui faz alteração
}
if($action == 'delete') {
//aqui faz a exclusão
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment