-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
30 lines (29 loc) · 835 Bytes
/
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
<?php
session_start();
$count = 0;
$title = "Index";
require_once "./template/header.php";
require_once "./functions/database_functions.php";
$conn = db_connect();
$row = select4Latestmed($conn);
?>
<br/> <br/>
<p class="lead text-center text-muted">OUR TOP SALE MEDICINES</p>
<br><br>
<div class="row">
<?php
foreach($row as $medicine)
{
?>
<div class="col-md-3">
<a href="medicine.php?medserial=<?php echo $medicine['med_serial']; ?>">
<img class="img-responsive img-thumbnail" src="./bootstrap/img/<?php echo $medicine['med_image']; ?>">
</a>
</div>
<?php
} ?>
</div>
<?php
if(isset($conn)) {mysqli_close($conn);}
require_once "./template/footer.php";
?>