-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetails6.php
62 lines (59 loc) · 1.87 KB
/
details6.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
<?php
session_start();
if(isset($_GET['no'])){
$_SESSION['location_id'] = $_GET['no'];
}
include 'connect.php';
$icon = "";
$selectquery = "SELECT * FROM `navbar4`";
$query = mysqli_query($con, $selectquery);
if($query){
$fav_icon = mysqli_fetch_assoc($query);
$icon = $fav_icon['Image'];
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Location Details</title>
<link rel="icon" type="image/png" href="images/<?php echo $icon; ?>" />
<link rel="stylesheet" href="details.css">
</head>
<body>
<?php
include "navbar.php";
?>
<section id="container">
<div id="box">
<?php
include 'connect.php';
$selectquery = "SELECT * FROM `details6`";
$query = mysqli_query($con, $selectquery);
if($query){
while($row = mysqli_fetch_assoc($query)){ ?>
<div id="details">
<img src="details_img/<?php echo $row['Image'] ?>" alt="Location Images">
<p><?php echo $row['Name'] ?></p>
</div>
<?php }
}
?>
</div>
<div id="content">
<?php
include 'connect.php';
$selectquery = "SELECT * FROM `detailsContent6`";
$query = mysqli_query($con, $selectquery);
if($query){
while($row = mysqli_fetch_assoc($query)){ ?>
<p><?php echo $row['Content1']; ?></p>
<p><?php echo $row['Content2']; ?></p>
<button><a href="<?php echo $row['Link']; ?>.php"><?php echo $row['Name']; ?></a></button>
<?php }
} ?>
</div>
</section>
</body>
</html>