Hapus Data Wisata Aplikasi informasi wisata dan hotel di Kabupaten Tabanan dengan Google Map Api
TRUE { 17. echo coba3;
18. echo
script language=javascriptalertData
Berhasil Dirubahscript;
19. echo script
language=javascriptwindow.location =
..HalamanUtamaPengelola.php script; 20. } else {
21. echo coba4; 22. echo script language=javascriptalertData Tidak Berhasil
Dirubahscript; 23. echo Error: . sql . br . conn-error;
24. echo script
language=javascriptwindow.location =
Edit_data_pengelola.php script; 25. }
Gambar 4. 11 Halaman Hapus Data Wisata.
Listing program untuk menghapus data obyek wisaata yang dimiliki oleh pengelola.
1. div class=col-md-12
2. h1
Data Tempat
Wisata yang
Dimiliki ?php
echo _SESSION[Nama_pengelola]; ? : h1
3. div
4. div
5. div class=row
6. div class=col-md-12
7. table class=table border=1
8. thead
9. tr
10. thId Wisatath 11. thNama Tempat wisatath
12. thAlamatth 13. thBiaya Masukth
14. thTlp Pengelolath 15. thKeteranganth
16. thLongtitudeth 17. thLatitudeth
18. tr 19. ?php
20. include ....KoneksiConeksi.php; 21. Session = _SESSION[Nama_pengelola];
22. query = mysql_queryselect from Wisata where
Nama_pengelola=Session; 23. while row = mysql_fetch_arrayquery {
24. echo tr; 25. echo thspan . row[Id_wisata] . th;
26. echo thspan . row[Nama_wisata] . th; 27. echo thspan . row[Alamat] . th;
28. echo thspan . row[Harga] . th; 29. echo thspan . row[No_tlp] . th;
30. echo thspan . row[Keterangan] . th; 31. echo thspan . row[Longtitude] . th;
32. echo thspan . row[Latitude] . th; 33. echo
tddiv align=centera
href=..wisataHapusdatawisatapengelola.php?Idwisata= . row[Id_wisata] . class=delbutton title=Click To Deletedeleteadivtd;
34. echo tr; 35. }
36. ? 37. thead
38. table 39. div