-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
47 lines (36 loc) · 887 Bytes
/
category.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
<?php include('config.php'); ?>
<!DOCTYPE html>
<html>
<!-- Header -->
<head>
<?php include('header.php'); ?>
</head>
<!-- Header Close -->
<body class="text-center gradbackground white-text">
<?php include('navbar.php'); ?>
<div class="container">
<div class="row">
<?php
$sql = "SELECT * FROM `category` ;";
$result =mysqli_query($con,$sql);
if($result->num_rows > 0){
while($row = mysqli_fetch_array($result)){
echo('
<a href="item.php?id='.$row["id"].'">
<div class="col-md-3 col-xs-6 text-center ">
<div class="shadow curve white black-text ">
<img src="'.$row["image"].'" class="img img-responsive curve center-block">
<h5 style="padding: 10px !important;margin: 0px;">'.$row["category"].'</h5>
<p>'.$row["description"].'</p>
</div>
</div>
</a>
');
}
}
?>
</div>
</div>
<?php include('footer.php'); ?>
</body>
</html>