Selasa, 11 Januari 2011

update

<?php
$koneksi=mysql_connect("localhost","root","password")or die("Gagal Konek server".mysql_error());
mysql_select_db("a",$koneksi)or die("Database agagl dibuka".mysql_error());
$ID=$_POST['ID'];
$update="update tabel_sepatu set
merk='$merk',warna='$warna',harga='$harga' where kode_sepatu='$ID'";
$cek=mysql_query($update);
if ($cek){
echo "Data telah diubah";
include "tampil barang.php";}
else
echo "Data gagal diubah";
?>
</body>

Tidak ada komentar:

Posting Komentar