| Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64 Path : /home/udaipurk/public_html/websites/samaj/samaj/admin/ |
| Current File : /home/udaipurk/public_html/websites/samaj/samaj/admin/check.php |
<?php session_start();
$pas=$_POST['pas'];
$nm= $_POST['nm'];
include('../config.php');
$query=mysqli_query($link,"select * from admin_login where Username='$nm'");
$row=mysqli_fetch_array($query);
$pass=$row['Password'];
if($pas==$pass)
{
$_SESSION['samaj_admin']=$row['a_id'];
header('location:home.php');
}
else
{
unset($_SESISON['samaj_admin']);
header('location:index.php?err=1');
}
?>