Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //memasukan file core
- include "core.php";
- //instanisasi class core
- $core = new core();
- $aksi = $_GET["aksi"];
- if($aksi == 'create'){
- $core->create($_POST['nim'],$_POST['nama']);
- header("location:index.php?success");
- }else if($aksi == 'delete'){
- $id_delete = $_GET['id'];
- $core->delete($id_delete);
- header("location:index.php?success");
- }else if($aksi == 'update'){
- $id_update = $_POST['id'];
- $core->update($id_update,$_POST['nama'],$_POST['nim']);
- header("location:index.php?success");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement