-
Notifications
You must be signed in to change notification settings - Fork 188
/
Copy pathcustomer_personal_details.php
74 lines (59 loc) · 2.66 KB
/
customer_personal_details.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
<?php
session_start();
if(!isset($_SESSION['customer_login']))
header('location:index.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Personal Details</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>
<br><br><br><br>
<h3 style="text-align:center;color:#2E4372;"><u>Personal Details</u></h3>
<?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];
$dob=$rws[3];
$nominee=$rws[4];
$branch=$rws[10];
$branch_code= $rws[11];
$gender=$rws[2];
$mobile=$rws[7];
$email=$rws[8];
$address=$rws[6];
$last_login= $rws[12];
$acc_status=$rws[13];
$acc_type=$rws[5];
?> <div class="customer_body">
<div class="content3">
<p><span class="heading">Name: </span><?php echo $name;?></p>
<p><span class="heading">gender: </span><?php if($gender=='M') echo "Male"; else echo "Female";?></p>
<p><span class="heading">Mobile: </span><?php echo $mobile;?></p>
<p><span class="heading">Email: </span><?php echo $email;?></p>
<p><span class="heading">Address: </span><?php echo $address;?></p>
</div>
<div class="content4">
<p><span class="heading">Account No: </span><?php echo $account_no;?></p>
<p><span class="heading">Nominee: </span><?php echo $nominee;?></p>
<p><span class="heading">Branch: </span><?php echo $branch;?></p>
<p><span class="heading">Branch Code: </span><?php echo $branch_code;?></p>
<p><span class="heading">Account Type: </span><?php echo $acc_type;?></p>
</div>
</div>
</div>
<?php include 'footer.php';?>
</body>
</html>