Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "koneksi/koneksi.php";
- if (isset($_GET['id'])) {
- $id = $_GET['id'];
- $publish = mysqli_query($db, "UPDATE berita SET status='unpublish' WHERE id='$id'");
- if ($publish) {
- header('location:data-berita.php');
- }
- } else {
- header('location:data-berita.php');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement