<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
<style>
body{
background-color: aliceblue;
}
</style>
</head>
<body>
<form action="#" method="post">
<?php
ob_start();
// put your code here
include './Homemst.php';
include './Conn.php';
$qur="select * from tbl_user;";
$records= mysqli_query($Conn, $qur);
?>
<center>
<table cellpadding="6px" border="1px" class="table table-bordered">
<th>Email id</th>
<th>First Name</th>
<th>last Name</th>
<th>Middle Name</th>
<th>Gender</th>
<th>Country</th>
<th>State</th>
<th>City</th>
<th>Pin-Code</th>
<th>Date of birth</th>
<th>Address</th>
<th>Profile_photo</th>
<th>Aadhar No</th>
<th>Pan No</th>
<th>Password</th>
<th>Inserted on</th>
<th>Activate/Deactivate</th>
<th>Operations</th>
<?php
echo '<h3>Users Info</h3>';
echo '<br>.<br>';
while($res=mysqli_fetch_assoc($records))
{
echo "<center>";
echo "<tr><td>".$res['Email_Id']."</td>
<td>".$res['First_Name']."</td>
<td>".$res['Last_Name']."</td>
<td>".$res['Middle_Name']."</td>
<td>".$res['Gender']."</td>
<td>".$res['countryid']."</td>
<td>".$res['sid']."</td>
<td>".$res['cid']."</td>
<td>".$res['Pin_code']."</td>
<td>".$res['Date_of_birth']."</td>
<td>".$res['Address']."</td>
<td>".$res['Profile_Photo']."</td>
<td>".$res['Adharcard_number']."</td>
<td>".$res['Pancard_number']."</td>
<td>".$res['Password']."</td>
<td>".$res['Insertted_on']."</td>
<td><a href=activat.php>DeActive</td>
<td><input type='checkbox' name='checkbox[]' value='$res[Id]'/>
</td></tr>";
echo "</center>";
}
?>
</table>
<br>
<br>
<br>
<input type="submit" name="btndel" value="DELETE" class="btn btn-danger">
</center>
</form>
</body>
</html>
<?php
//<td><a href=delete.php?Email_id=".$res['Email_Id'].">Delete</a>
//include './Conn.php';
if(isset($_POST['btndel']))
{
$d=$_POST['checkbox'];
$de=implode(",",$d);
$qdelete="delete from tbl_user where Id IN ($de);";
mysqli_query($Conn, $qdelete);
header('Location:View.php');
}
ob_end_flush();
?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
<style>
body{
background-color: aliceblue;
}
</style>
</head>
<body>
<form action="#" method="post">
<?php
ob_start();
// put your code here
include './Homemst.php';
include './Conn.php';
$qur="select * from tbl_user;";
$records= mysqli_query($Conn, $qur);
?>
<center>
<table cellpadding="6px" border="1px" class="table table-bordered">
<th>Email id</th>
<th>First Name</th>
<th>last Name</th>
<th>Middle Name</th>
<th>Gender</th>
<th>Country</th>
<th>State</th>
<th>City</th>
<th>Pin-Code</th>
<th>Date of birth</th>
<th>Address</th>
<th>Profile_photo</th>
<th>Aadhar No</th>
<th>Pan No</th>
<th>Password</th>
<th>Inserted on</th>
<th>Activate/Deactivate</th>
<th>Operations</th>
<?php
echo '<h3>Users Info</h3>';
echo '<br>.<br>';
while($res=mysqli_fetch_assoc($records))
{
echo "<center>";
echo "<tr><td>".$res['Email_Id']."</td>
<td>".$res['First_Name']."</td>
<td>".$res['Last_Name']."</td>
<td>".$res['Middle_Name']."</td>
<td>".$res['Gender']."</td>
<td>".$res['countryid']."</td>
<td>".$res['sid']."</td>
<td>".$res['cid']."</td>
<td>".$res['Pin_code']."</td>
<td>".$res['Date_of_birth']."</td>
<td>".$res['Address']."</td>
<td>".$res['Profile_Photo']."</td>
<td>".$res['Adharcard_number']."</td>
<td>".$res['Pancard_number']."</td>
<td>".$res['Password']."</td>
<td>".$res['Insertted_on']."</td>
<td><a href=activat.php>DeActive</td>
<td><input type='checkbox' name='checkbox[]' value='$res[Id]'/>
</td></tr>";
echo "</center>";
}
?>
</table>
<br>
<br>
<br>
<input type="submit" name="btndel" value="DELETE" class="btn btn-danger">
</center>
</form>
</body>
</html>
<?php
//<td><a href=delete.php?Email_id=".$res['Email_Id'].">Delete</a>
//include './Conn.php';
if(isset($_POST['btndel']))
{
$d=$_POST['checkbox'];
$de=implode(",",$d);
$qdelete="delete from tbl_user where Id IN ($de);";
mysqli_query($Conn, $qdelete);
header('Location:View.php');
}
ob_end_flush();
?>
Comments
Post a Comment