-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
112 lines (107 loc) · 3.49 KB
/
index.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MAHOGANI THE OASIS</title>
</head>
<body>
<header>
<h1>Tabel Data Apartement</h1>
</header>
<div class="header">
<div class="main"></div>
</div>
<h2>Tabel apartement</a></h2>
<table border="1" cellpadding="5" cellspacing="0">
<thead>
<tr>
<th>ID Apartment</th>
<th>Unit </th>
<th>Harga</th>
</tr>
</thead>
<?php
include 'config.php';
$sql = 'SELECT * FROM apartemen';
$query = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_array($query))
{
?>
<tbody>
<tr>
<td><?php echo $row['id_apart']?></td>
<td><?php echo $row['unit_apart']?></td>
<td><?php echo $row['harga']?></td>
</tr>
</tbody>
<?php
}
?>
</table>
<h2>Tabel Penyewa</a></h2>
<table border="1" cellpadding="5" cellspacing="0">
<thead>
<tr>
<th>ID Penyewa</th>
<th>ID apart</th>
<th>Tanggal check in</th>
<th>Tanggal Check out</th>
</tr>
</thead>
<?php
include 'config.php';
$sql = 'SELECT * FROM penyewa';
$query = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_array($query))
{
?>
<tbody>
<tr>
<td><?php echo $row['id_penyewa']?></td>
<td><?php echo $row['id_apart']?></td>
<td><?php echo $row['tgl_chekin']?></td>
<td><?php echo $row['tgl_checkout']?></td>
</tr>
</tbody>
<?php
}
?>
</table>
<h2>Tabel Transaksi</a></h2>
<table border="1" cellpadding="5" cellspacing="0">
<thead>
<tr>
<th>ID Transaksi</th>
<th>ID penyewa</th>
<th>Tanggal transaksi</th>
<th>total</th>
</tr>
</thead>
<?php
include 'config.php';
$sql = 'SELECT * FROM trs_sewa';
$query = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_array($query))
{
?>
<tbody>
<tr>
<td><?php echo $row['id_trs']?></td>
<td><?php echo $row['id_penyewa']?></td>
<td><?php echo $row['tgl_trs']?></td>
<td><?php echo $row['total_trs']?></td>
</tr>
</tbody>
<?php
}
?>
</table>
<br>
<br>
<footer>
<p>© 2021 - Universitas pelita bangsa Fakultas Teknik Informatika</p>
</footer
</body>
</html>