forked from g33kyrash/Online-Banking-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_account_summary.php
78 lines (61 loc) · 2.51 KB
/
customer_account_summary.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
session_start();
if(!isset($_SESSION['customer_login']))
header('location:index.php');
?>
<?php
$cust_id=$_SESSION['cust_id'];
include '_inc/dbconn.php';
$sql="SELECT * FROM customer WHERE email='$cust_id'";
$result= mysql_query($sql) or die(mysql_error());
$rws= mysql_fetch_array($result);
$name= $rws[1];
$account_no= $rws[0];
$branch=$rws[10];
$branch_code= $rws[11];
$last_login= $rws[12];
$acc_status=$rws[13];
$address=$rws[6];
$acc_type=$rws[5];
$gender=$rws[2];
$mobile=$rws[7];
$email=$rws[8];
$_SESSION['login_id']=$account_no;
$_SESSION['name']=$name;
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Home - Online Banking</title>
<link rel="stylesheet" href="newcss.css">
</head>
<?php include 'header.php' ?>
<div class='content_customer'>
<?php include 'customer_navbar.php'?>
<div class="customer_top_nav">
<div class="text">Welcome <?php echo $_SESSION['name']?></div>
</div>
<?php
$sql="SELECT * FROM passbook".$_SESSION['login_id'] ;
$result= mysql_query($sql) or die(mysql_error());
while($rws= mysql_fetch_array($result))
{
$balance=$rws[7];
}
?>
<div class="customer_body">
<div class="content1">
<p><span class="heading">Account No: </span><?php echo $account_no;?></p>
<p><span class="heading">Branch: </span><?php echo $branch;?></p>
<p><span class="heading">Branch Code: </span><?php echo $branch_code;?></p>
</div>
<div class="content2">
<p><span class="heading">Balance: INR </span><?php echo $balance;?></p>
<p><span class="heading">Account status: </span><?php echo $acc_status;?></p>
<p><span class="heading">Last Login: </span><?php echo $last_login;?></p>
</div>
</div>
<?php include 'footer.php';?>
</body>
</html>