SCRIPT UPDATE PROSES PHP
UPDATE
<?php
include 'koneksi.php';
$id_izin= $_POST ['id_izin'];
$nama = $_POST ['nama'];
$kelas = $_POST ['kelas'];
$jurusan = $_POST ['jurusan'];
$ortu= $_POST ['ortu'];
$tgl_izin= $_POST ['tgl_izin'];
$tgl_masuk= $_POST ['tgl_masuk'];
mysqli_query($koneksi,"update izin set id_izin='$id_izin',nama='$nama',jurusan='$jurusan',ortu='$ortu',tgl_izin='$tgl_izin',tgl_masuk='$tgl_masuk' where id_izin='$id_izin'");
header("location:showizin.php");
?>
<?php
include 'koneksi.php';
$id_izin= $_POST ['id_izin'];
$nama = $_POST ['nama'];
$kelas = $_POST ['kelas'];
$jurusan = $_POST ['jurusan'];
$ortu= $_POST ['ortu'];
$tgl_izin= $_POST ['tgl_izin'];
$tgl_masuk= $_POST ['tgl_masuk'];
mysqli_query($koneksi,"update izin set id_izin='$id_izin',nama='$nama',jurusan='$jurusan',ortu='$ortu',tgl_izin='$tgl_izin',tgl_masuk='$tgl_masuk' where id_izin='$id_izin'");
header("location:showizin.php");
?>
Comments
Post a Comment
Mohon dengan komentar yang sopan dan membangun