-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlol.php
More file actions
44 lines (40 loc) · 868 Bytes
/
Copy pathlol.php
File metadata and controls
44 lines (40 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
session_start();
include('conn.php');
if(isset($_POST['login']))
{
$email=$_POST['email'];
$password=$_POST['pass'];
$password=md5($password);
$q="select * from slogin where password='$password' AND email='$email'";
$q2 = mysqli_query($dbc,$q);
$q3 = mysqli_fetch_array($q2);
if($email ==$q3['email'] && $password == $q3['password'])
{
echo $q3['id'];
$_SESSION['mid']= $q3['id'];
$lid=$q3['id'];
$var="select * from marks where loginid='$lid'";
echo $var;
$q4 = mysqli_query($dbc,$var);
$q5 = mysqli_fetch_array($q4);
echo $q5['matric_omarks'];
echo $q5['loginid'];
if($q5['matric_omarks']==NULL)
{
header('location:info.html');
}
else
{
header('location:admin.php');
}
}
else
{
echo "<script>
alert('Email or Password do not match');
window.location.href='/aa/#pricing';
</script>";
}
}
?>