-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathverifyuser.php
26 lines (26 loc) · 899 Bytes
/
verifyuser.php
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
<?php
session_start();
include('config.php');
$uname=mysql_real_escape_string($_POST['username']);
$upass=mysql_real_escape_string($_POST['password']);
$query="SELECT * FROM `reg321@#%` WHERE Username='$uname' AND Password='$upass'";
$result = mysql_query($query)or die('Query "'.$query.'" failed.'.mysql_error());
$row = mysql_fetch_array($result);
if($row['Username'])// && $row['Username']==$uname && $row['Password']==$upass)
{
$_SESSION['accountno']=$row['AccountNo'];
header('Location:accountsummary.php');
}
else
{
mysql_close($con);
if($uname=='' && $upass=='')
header('Location:internetbanking.php?id=Please Enter Username and Password');
else if($uname=='')
header('Location:internetbanking.php?id=Please Enter Username');
else if($upass=='')
header('Location:internetbanking.php?id=Please Enter Password');
else
header('Location:internetbanking.php?id=Invalid Username or Password');
}
?>