forked from akkireddy95/Online-Banking-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomer_mini_statement.php
63 lines (53 loc) · 1.95 KB
/
customer_mini_statement.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
<?php
session_start();
if(!isset($_SESSION['customer_login']))
header('location:index.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Mini Statement</title>
<link rel="stylesheet" href="newcss.css">
<style>
.content_customer table,th,td {
padding:6px;
border: 1px solid #2E4372;
border-collapse: collapse;
text-align: center;
}
</style>
</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 include '_inc/dbconn.php';
$sender_id=$_SESSION["login_id"];
$sql="SELECT * FROM passbook".$sender_id." LIMIT 10";
$result= mysql_query($sql) or die(mysql_error()); ?>
<br><br><br>
<h3 style="text-align:center;color:#2E4372;"><u>Last 10 Transaction</u></h3>
<table align="center">
<th>Id</th>
<th>Transaction Date</th>
<th>Narration</th>
<th>Credit</th>
<th>Debit</th>
<th>Balance Amount</th>
<?php
while($rws= mysql_fetch_array($result)){
echo "<tr>";
echo "<td>".$rws[0]."</td>";
echo "<td>".$rws[1]."</td>";
echo "<td>".$rws[8]."</td>";
echo "<td>".$rws[5]."</td>";
echo "<td>".$rws[6]."</td>";
echo "<td>".$rws[7]."</td>";
echo "</tr>";
} ?>
</table>
</div>
<?php include 'footer.php'?>