-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupdateTransaction.php
30 lines (29 loc) · 1.14 KB
/
updateTransaction.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
<?php
include('connect-db.php');
session_start();
$select_transactions = "SELECT * FROM transactions WHERE User_ID = '{$_SESSION['idNo']}'";
$process_selection = $con->query($select_transactions);
if($process_selection->num_rows>0){
echo "<table class='responsive-table'>
<thead>
<th style='width:200px;'>Transaction ID</th>
<th>Time Stamp</th>
<th>Amount</th>
<th>Transaction Type</th>
</thead>
<tbody>";
while($transactionTData = $process_selection->fetch_array()){
echo "<tr>";
echo"<td>".$transactionTData['TID']."</td>";
echo"<td>".$transactionTData['TimeStamp']."</td>";
echo"<td>".$transactionTData['Amount']."</td>";
echo"<td>".$transactionTData['TransactionType']."</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
}
else{
echo "<span class='black-text' style='font-size:20px;'>You do not have any transactions yet</span>";
}
?>