-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.php
More file actions
79 lines (66 loc) · 2.72 KB
/
view.php
File metadata and controls
79 lines (66 loc) · 2.72 KB
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
<?php
include('assets/shared/connect.php');
$islandOfPersonalityID = $_GET['id'];
$islandPersonalityQuery = "SELECT * FROM islandsofpersonality WHERE islandOfPersonalityID = $islandOfPersonalityID";
$islandPersonalityResult = executeQuery($islandPersonalityQuery);
$islandTabQuery = "SELECT * FROM islandsofpersonality WHERE islandOfPersonalityID = $islandOfPersonalityID";
$islandTabResult = executeQuery($islandTabQuery);
$islandContentQuery = "SELECT
islandsofpersonality.islandOfPersonalityID,
islandcontents.color AS contentColor,
islandcontents.image AS contentImage,
islandcontents.content
FROM
islandsofpersonality
JOIN
islandcontents ON islandsofpersonality.islandOfPersonalityID = islandcontents.islandOfPersonalityID
WHERE
islandsofpersonality.islandOfPersonalityID = $islandOfPersonalityID";
$islandContentResult = executeQuery($islandContentQuery);
?>
<!doctype html>
<html lang="en">
<?php
include("assets/shared/head.php");
while ($islandTabRow = mysqli_fetch_assoc($islandTabResult)) {
?>
<title><?php echo $islandTabRow['name'] ?></title>
<link rel="icon" href="assets/images/<?php echo $islandTabRow['image'] ?>" />
<?php
}
?>
<body>
<!-- ------------Island Content Section------------- -->
<div class="container-fluid bg-dark text-white">
<div class="row d-flex justify-content-center align-items-center">
<div class="col text-center">
<?php
while ($islandPersonalityRow = mysqli_fetch_assoc($islandPersonalityResult)) {
?>
<div class="heading" data-aos="fade-up">Welcome to my <span
style="color:<?php echo $islandPersonalityRow['color'] ?>"><?php echo $islandPersonalityRow['name'] ?>!</span>
<?php
}
?>
<?php
if (mysqli_num_rows($islandContentResult) > 0) {
while ($islandContentRow = mysqli_fetch_assoc($islandContentResult)) {
?>
</div>
<img class="img-fluid mt-5" data-aos="fade-up"
src="assets/images/<?php echo $islandContentRow['contentImage'] ?>">
<div>
<div data-aos="fade-up">
<?php echo $islandContentRow['content'] ?>
</div>
<?php
}
}
?>
</div>
</div>
</div>
</div>
<?php include("assets/shared/script.php"); ?>
</body>
</html>