-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtampil_transaksi.php
49 lines (49 loc) · 1.54 KB
/
tampil_transaksi.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
<!DOCTYPE html>
<html>
<head>
<title>Tambah Transaksi</title>
</head>
<body>
<h2>Pemograman 1 2023</h2>
<br>
<a href="tambah_transaksi.php">+ Tambah Transaksi</a>
<br>
<table border="1">
<tr>
<th>Id</th>
<th>Tanggal Transaksi</th>
<th>No Transaksi</th>
<th>Jenis Transaksi</th>
<th>penjualan id</th>
<th>Id Barang</th>
<th>Jumlah Transaksi</th>
<th>member Id </th>
<th>Total</th>
</tr>
<?php
include 'koneksi.php';
$no = 1;
$data = mysqli_query($koneksi,"Select * From transaksi");
while($d = mysqli_fetch_array($data)){
?>
<tr>
<td><?php echo $no++; ?></td>
<td><?php echo $d['tgl_transaksi'];?></td>
<td><?php echo $d['no_transaksi'];?></td>
<td><?php echo $d['jenis_transaksi'];?></td>
<td><?php echo $d['id_penjualan'];?></td>
<td><?php echo $d['id_barang'];?></td>
<td><?php echo $d['jumlah_transaksi'];?></td>
<td><?php echo $d['id_member'];?></td>
<td><?php echo $d['total'];?></td>
<td>
<a href="edit_transaksi.php?id=<?php echo $d['id_transaksi']; ?>">Edit</a>
<a href="hapus_transaksi.php?id=<?php echo $d['id_transaksi']; ?>">Hapus</a>
</td>
</tr>
<?php
}
?>
</table>
</body>
</html>