-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
135 lines (97 loc) · 4.7 KB
/
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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
session_start();
if (!isset($_SESSION['username'])) {
$_SESSION['msg'] = "You must log in first";
header('location: login.php');
}
if (isset($_GET['logout'])) {
session_destroy();
unset($_SESSION['username']);
header("location: login.php");
}
$mysqli = new mysqli("localhost", "root", "", "login system");
$query = "SELECT * FROM testimonials";
$result = $mysqli->query($query) ;
$row_count=mysqli_num_rows($result);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="main.css">
<title>Jason Malabute</title>
</head>
<body>
<div class="NavBar">
<nav>
<h1 class="logo"><a href="index.html">JASON MALABUTE</a></h1>
<div class="navRight" id="navRight">
<h2><a href="contact-me.html">CONTACT ME</a></h2>
<h2><a href="about-me.html" >MY STORY</a></h2>
</div>
<div class="menu-icon"><i class="fas fa-bars"></i></div>
</nav>
</div>
<div class="mobile-menu-wrapper hide-menu">
<div class="mobile-menu">
<h2><a href="contact-me.html" >CONTACT ME</a></h2>
<h2><a href="about-me.html" >MY STORY</a></h2>
</div>
</div>
<div class="about-me-container">
<h1>Admin Dashboard</h1>
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Profession</th>
<th scope="col">Rating</th>
<th scope="col">Testimonial</th>
</tr>
</thead>
<tbody>
<?php while ($row = mysqli_fetch_array($result)) {
// $fullname = $row["fullname"];
// $profession = $row["profession"];
//$rating = $row["rating"];
// $testimonial = $row["testimonial"];
echo "<tr><th >". $row["fullname"] ."</th><td>". $row["profession"] ."</td><td>". $row["rating"] ."</td><td>". $row["testimonial"] ."</td></tr>";
/*freeresultset*/
//$result->free();
} ?>
</tbody>
</table>
</div>
<div class="quote">
<h3>"We become what we think about." -Earl Nightingale</h3>
</div>
<div class="links">
<ul>
<li><a href="https://podcasts.apple.com/us/podcast/15-the-jason-patrick-interview/id1503184253?i=1000479040903" target="_blank">podcast</a></li>
<li><a href="https://www.biggerpockets.com/member-blogs/13653-jason-malabute-s-investing-journey" target="_blank">blog</a></li>
<li><a href="about-me.html">my story</a></li>
<li><a href="contact-me.html">contact me</a></li>
</ul>
</div>
<footer>
<div class="social-media">
<ul>
<li><a href="https://m.facebook.com/profile.php?id=100070982033578&_rdr" target="_blank"><i class="fab fa-facebook"></i></a></li>
<li><a href="https://instagram.com/jasonmalabute?igshid=1qlby6ahcn198" target="_blank"><i class="fab fa-instagram"></i></a></li>
<li><a href="https://www.linkedin.com/in/jason-malabute-cpa-mba-31649550/" target="_blank"><i class="fab fa-linkedin-in"></i></a></li>
<li><a href="https://vm.tiktok.com/ZMedhtghv/" target="_blank"><i class="fab fa-tiktok"></i></a></li>
<li><a href="https://mobile.twitter.com/jasonmalabute" target="_blank"><i class="fab fa-twitter"></i></a></li>
</ul>
<a href="https://www.biggerpockets.com/member-blogs/13653-jason-malabute-s-investing-journey" target="_blank"><img src="https://images.squarespace-cdn.com/content/v1/578d631e59cc68eeb0cb8104/1469043257016-8OP6IHMXP3LE1QQY6RG7/image-asset.png?format=300w" style=" width: 100.772%; height: 100%; "></a>
</div>
<div class="copyright">
<p style="text-align:center;white-space:pre-wrap;" class="">Copyright Jason Malabute 2019 | <a href="privacy-policy.html">PRIVACY POLICY</a>/<a href="terms-conditions.html">Terms and conditions</a></p>
</div>
</footer>
<script src="https://kit.fontawesome.com/fc9e053d84.js" crossorigin="anonymous"></script>
<script src="app.js"></script>
</body>
</html>