hapusberita.php 423 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php
  include("function.php");

    $id_berita = $_GET['id_berita'];

    if(hapusberita($id_berita) > 0)
    {
      echo
  		"
  			<script>
  				alert('Destinasi berhasil dihapus');
  				document.location.href = 'berita_admin.php';
  			</script>
  		";
    }else {
      echo
  		"
  			<script>
  				alert('Destinasi gagal dihapus');
  				document.location.href = 'berita_admin.php';
  			</script>
  		";
    }