do this work
- show data in html table
- downlode this service.php file download
- show data in update form
- make update
- down load login foler
- add this in admin folder
- open index.php
- add this code
include "../database.php";
session_start();
if (isset($_POST['login'])) {
$name = $_POST['name'];
$email = $_POST['email'];
$query = "SELECT * FROM student where name='$name' and
email='$email'";
$result = mysqli_query($connection,$query);
if (mysqli_num_rows($result)) {
$_SESSION['user']=$name;
header("location:/data_practice/bootstrap_curd/crud.php");
}else{
}
}
go to admin/crud.php
add this code at top
<?php
session_start();
if (isset($_SESSION['user'])) {
}else{
header('location:login/index.php');
}
?>
make a file logout.php
add this ode
<?php
session_start();
session_destroy();
header("location:crud.php");
?>