-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_tarif.php
51 lines (43 loc) · 1016 Bytes
/
edit_tarif.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<?php include('head_ref.php') ?>
</head>
<body>
<?php include('nav.php') ?>
<?php include('header.php') ?>
<p>
<h3>Edit Tarif</h3>
<!-- edit tarif -->
<?php
$id=$_GET['id'];
include "koneksi.php";
$no=1;
$data=mysqli_query($koneksi, "select * from tarifs WHERE tarifs.id='$id'");
$hasil=mysqli_fetch_array($data);
?>
<a href="tarif.php"><button>Kembali</button></a>
<form method="post" action="action/simp_edit_tarif.php">
<table>
<tr>
<td><input type="hidden" name="id" required value="<?php echo $id; ?>"></td>
</tr>
<tr>
<td>Daya Tarif PerKwh</td>
<td>:</td>
<td><input type="varchar" name="daya_tarifperkwh" required value="<?php echo $hasil['daya_tarifperkwh']; ?>"></td>
</tr>
<tr>
<td></td>
<td></td>
<td>
<button type="submit">Simpan</button>
<button type="reset">Reset</button>
</td>
</tr>
</table>
</form>
<?php include('footer.php') ?>
<?php include('js.php') ?>
</body>
</html>