Senin, 08 Juni 2015

edit

<?php
include "db.php";
$kode = $_GET['kode'];
$hasil = mysql_query("select * from menu where kode='$kode'");
$buff = mysql_fetch_array($hasil);
?>

<html>
<head>
</head>
<body>

<form action="edit1.php" method="POST">
<table>
<tr>
<td>Kode Menu<td>
<td><input type="text" name="kode" value="<?php echo $buff['kode'];?>"><td>
</tr>
<tr>
<td>Nama Menu<td>
<td><input type="text" name="nama_menu" value="<?php echo $buff['nama_menu'];?>"><td>
</tr>
<tr>
<td>Harga Menu<td>
<td><input type="text" name="harga" value="<?php echo $buff['harga'];?>"><td>
</tr>
<td><input type="submit" name="submit" value="Submit"></td>

</body>
</html>

Tidak ada komentar:

Posting Komentar