gundambison

CRUD 1 file

Nov 26th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. $act=isset($_GET['act'])?$_GET['act']:FALSE;
  3. if($act=='edit'){
  4.     //form edit disini yg mana arah urlnya ?act=update
  5. }
  6.  
  7. if($act=='update'){
  8.     //update disini
  9. }
  10.  
  11. if($act=='delete'){
  12.     //delete disini
  13. }
  14.  
  15. if($act=='new'){
  16.     //form new disini yg mana arah urlnya ?act=insert
  17. }
  18.  
  19. if($act=='insert'){
  20.     //insert disini
  21. }
  22.  
  23. //sisanya saya biasa nulis list yang bisa dilihat dan di klik untuk edit dibawah..
  24. $sql=""; //order by desc limit 0,10
  25. /*
  26. tablenya disini ada klik buat edt dan delete..
  27. buat delete ada confirm ya
  28. */?>
  29. <script>
  30. /*
  31. taro script disini
  32. */
  33. </script>
Advertisement
Add Comment
Please, Sign In to add comment