-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfasilitas.php
More file actions
45 lines (29 loc) · 931 Bytes
/
fasilitas.php
File metadata and controls
45 lines (29 loc) · 931 Bytes
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
<<div class="box">
<div class="row">
<?php
include "koneksi.php";
$per_page=10;
if (isset($_GET['page'])) {
$page = $_GET['page'];
}else {
$page=1;
}
$query = "SELECT * FROM fasilitas";
$sql = mysqli_query($connect,$query);
while ( $data_fasilitas = mysqli_fetch_array($sql,MYSQLI_BOTH) ) {
?>
<div class="col-md-3 portfolio-item" style="margin-left: 9%; margin-right: 30px;">
<a href="#">
<img class="img-responsive" src="<?php echo $data_fasilitas['gambar'];?>" style="max-width: 300px;">
</a>
<h3>
<?php echo $data_fasilitas['nama'];?>
</h3>
<p><?php echo nl2br($data_fasilitas['rincian']); ?>
</p>
</div>
<?php
}
?>
</div>
</div>