%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : ndkhermy ( 1200) PHP Version : 8.5.12 Disable Function : NONE Directory : /home1/ndkhermy/www/website_6ca89795/admin/ |
Upload File : |
<?php
session_start();
if(!isset($_SESSION["username"]))
{
header('location:../admin.php');
exit();
}
?>
<?php include('header.php'); ?>
<div class="container">
<h2>Search Form Data</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>No.</th>
<th>Name</th>
<th>Phone</th>
<th>Destination</th>
<th>Depart Date</th>
<th>Travel Type</th>
<th>Tour Duration</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php
include('../dbcon.php');
$run = $conn->query("SELECT * FROM search_form ORDER BY id DESC");
if($run && $run->num_rows > 0)
{
$count = 0;
while($data = $run->fetch_assoc())
{
$count++;
?>
<tr>
<td><?php echo $count; ?></td>
<td><?php echo htmlspecialchars($data['name']); ?></td>
<td><?php echo htmlspecialchars($data['phone']); ?></td>
<td><?php echo htmlspecialchars($data['destination']); ?></td>
<td><?php echo htmlspecialchars($data['depart_date']); ?></td>
<td><?php echo htmlspecialchars($data['travel_type']); ?></td>
<td><?php echo htmlspecialchars($data['tour_duration']); ?></td>
<td><?php echo htmlspecialchars($data['created_at']); ?></td>
</tr>
<?php
}
}
else
{
echo "<tr><td colspan='8'>No Data Found</td></tr>";
}
?>
</tbody>
</table>
</div>
<!-- JS -->
<script src="../assets/vendor/libs/jquery/jquery.js"></script>
<script src="../assets/vendor/libs/popper/popper.js"></script>
<script src="../assets/vendor/js/bootstrap.js"></script>
<script src="../assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.js"></script>
<script src="../assets/vendor/js/menu.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>