-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewpayment.php
58 lines (56 loc) · 1.29 KB
/
viewpayment.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
<?php
include("header.php");
include("dbconnection.php");
if(isset($_GET[delid]))
{
$sql ="DELETE FROM paymentid WHERE paymentid='$_GET[delid]'";
$qsql=mysqli_query($con,$sql);
if(mysqli_affected_rows($con) == 1)
{
echo "<script>alert('doctor record deleted successfully..');</script>";
}
}
?>
<div class="wrapper col2">
<div id="breadcrumb">View Payment</div>
</div>
<div class="wrapper col4">
<div id="container">
<h1>View Payment Record</h1>
<table width="558" border="3">
<tbody>
<tr>
<td width="75">Payment ID</td>
<td width="63">Patient ID</td>
<td width="90">Paid Date</td>
<td width="116">Paid Time</td>
<td width="99">Paid Amount</td>
<td width="71">Status</td>
</tr>
<?php
$sql ="SELECT * FROM payment";
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
echo "<tr>
<td> $rs[paymentid]</td>
<td> $rs[patientid]</td>
<td> $rs[paiddate]</td>
<td> $rs[paidtime]</td>
<td> $rs[paidamount]</td>
<td> $rs[status]</td>
</tr>";
}
?>
</tbody>
</table>
<p> </p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php
include("footer.php");
?>