Advertisement
GWibisono

logika itu harusnya mudah.. jgn dipersulit

Jan 19th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <body>
  2. <?php
  3. include"koneksi.php";
  4. /*
  5. =================YAKIN INI NGAK SALAH NAMA VAR YG DITARIK DARI GET??
  6. */
  7. $id=$_GET['Id'];
  8. $Delete=mysql_query("DELETE from btamu where id=' $id'");
  9. if($Delete){
  10.          echo"Data Sudah Terhapus !";
  11. }
  12. else
  13. {
  14.             echo"Ada Listing Yang Belum Sesuai??";
  15. die(mysql_error());
  16. }
  17.  
  18. /*
  19. anywaya km ngak bakal nemuin error krn langsung jalan ke tampil_tbl.php
  20. lalu buat apa di echo!!
  21. */
  22. ?>
  23. <script language="javascript" type="text/javascript">location.href='tampil_tbl.php';</script>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement