Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'koneksi.php';
- $id_berita = $_GET['id'];
- $judul = $_POST['judul'];
- $headline = $_POST['headline'];
- $isi = $_POST['isi'];
- $pengirim = $_POST['pengirim'];
- $edit_berita = "UPDATE berita SET judul='$judul', headline='$headline', isi='$isi', pengirim='$pengirim' WHERE id_berita = '$id_berita'";
- $editberita_query = mysql_query($edit_berita) or die(mysql_error());
- header('Location: arsip_berita.php');
- if (mysql_query($edit_berita))
- {
- echo "<h2><font color=blue>berita telah berhasil diedit</font></h2>" ;
- }
- else
- {
- echo "<h2><font color=red>berita gagal diedit</font></h2>" ;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement