-
Notifications
You must be signed in to change notification settings - Fork 0
/
localstore.php
105 lines (57 loc) · 1.71 KB
/
localstore.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
<?php
session_start();
include("includes/db.php");
include("includes/header.php");
include("functions/functions.php");
include("includes/main.php");
?>
<!-- MAIN -->
<main>
<!-- HERO -->
<div class="nero">
<div class="nero__heading">
<span class="nero__bold">Local </span>Stores
</div>
<p class="nero__text">
</p>
</div>
</main>
<div id="content" ><!-- content Starts -->
<div class="container-fluid" ><!-- container Starts -->
<div class="col-md-12" ><!-- col-md-12 Starts -->
<div class="services row"><!-- services row Starts -->
<?php
$get_services = "select * from store";
$run_services = mysqli_query($con,$get_services);
while($row_services = mysqli_fetch_array($run_services)){
$service_id = $row_services['store_id'];
$service_title = $row_services['store_title'];
$service_image = $row_services['store_image'];
$service_desc = $row_services['store_desc'];
$service_button = $row_services['store_button'];
$service_url = $row_services['store_url'];
?>
<div class="col-md-4 col-sm-6 box"><!-- col-md-4 col-sm-6 box Starts -->
<img src="admin_area/store_images/<?php echo $service_image; ?>" class="img-responsive">
<h2 align="center"> <?php echo $service_title; ?> </h2>
<p>
<?php echo $service_desc; ?>
</p>
<center>
<a href="<?php echo $service_url; ?>" class="btn btn-primary">
<?php echo $service_button; ?>
</a>
</center>
</div><!-- col-md-4 col-sm-6 box Ends -->
<?php } ?>
</div><!-- services row Ends -->
</div><!-- col-md-12 Ends -->
</div><!-- container Ends -->
</div><!-- content Ends -->
<?php
include("includes/footer.php");
?>
<script src="js/jquery.min.js"> </script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>