<?php
session_start();
$name = $_SESSION['user_name'];
if (isset($_SESSION['user_name']) or !empty($_SESSION['user_name'])) {
}else{
header("location:../index.php");
}
?>
<?php include_once __DIR__.'/config/header.php'; ?>
<br>
<br>
<br>
<?php include __DIR__.'/config/db_connect.php'; ?>
<?php
$sql = "select * from tbl_users";
$result_set = mysqli_query($con,$sql);
$count = @mysqli_num_rows($result_set);
?>
<section id="faq" class="faq section-bg">
<div class="container">
<div class="section-title" data-aos="fade-up">
<h2>BLOG</h2>
<p>MY BLOG USERS</p>
</div>
<div class="faq-list">
<ul>
<?php
if ($count>0) {
?>
<table cellspacing="2" width="100%" border="1" class="table-users">
<tr>
<th>SR NO</th>
<th>NAME</th>
<th>EMAIL</th>
<th>MOBILE</th>
<th>STATUS</th>
<th colspan="2">EDIT</th>
</tr>
<?php
$i =1;
while ($row = mysqli_fetch_assoc($result_set)) { ?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['email']; ?></td>
<td><?php echo $row['mobile']; ?></td>
<td><span><?php echo $row['status']; ?></span></td>
<td><a href="admin/user_status_update/<?php echo $row['id']; ?>" onclick="return confirm('Are you sure you Change status user - <?php echo $row['name']; ?>');"><i class="fa fa-wrench" style="color:orange;"></i></a></td>
<td> <a href="admin/del_users/<?php echo $row['id']; ?>" onclick="return confirm('Are you sure you want to delete user - <?php echo $row['name']; ?>');"><i class="fa fa-trash" style="color:red;"></i></a></td>
</tr>
<?php
$i++;
} ?>
</table>
<?php
}else{
echo "No record found";
}
?>
<!-- ======= F.A.Q Section ======= -->
</ul>
</div>
</div>
</section><!-- End F.A.Q Section -->
0 Comments