<?php
include "db.php";
$kode = $_POST['kode'];
$nama_menu = $_POST['nama_menu'];
$harga = $_POST['harga'];
$query = mysql_query("update menu set nama_menu='$nama_menu', harga='$harga' where kode='$kode'");
if($query){
echo "<script>window.alert('Edit Berhasil');
window.location=('read.php')
</script>";
}else{
echo "<script>window.alert('Edit Gagal');
window.location=('edit.php')
</script>";
}?>
Tidak ada komentar:
Posting Komentar