D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ksclnmuac
/
www
/
web
/
admin
/
Filename :
code.php
back
Copy
<?php include("connection.php"); $email=$_POST['email']; $pass=$_POST['pass']; $salt = "softproindia2022"; $salted_pass = $pass.$salt; $password = md5($salted_pass); // echo $password; // die(); $query="select * from tbl_admin where email='$email' and password='$password'"; $res=mysqli_query($dbCon,$query); $result=mysqli_num_rows($res); if($row=mysqli_fetch_array($res,MYSQLI_BOTH)&& $result==1) { session_start(); $_SESSION['user']=$email; header("Location:dashboard.php"); } else { header("Location:index.php?msg=1"); } ?>