-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslots3.php
57 lines (47 loc) · 914 Bytes
/
slots3.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
<html>
<body bgcolor="#fada5e">
<?php
include "connection.php";
$cin=$_POST['cin'];
$sql = "SELECT * FROM hearing where cin='$cin'";
$result = $con->query($sql);
?>
<div align="right">
<button onclick="window.location='welcome.html';"><h2 align="right">LOG OUT</h2></button>
</div>
<table align="center" border="1px" style="width:600px; line-height:40px;">
<tr>
<th colspan="2" ><h2>Hearings for the case</h2></th>
</tr>
<tr>
<th>Reason</th><th>Summary</th>
</tr>
<?php
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc())
{
?>
<tr>
<th><?php $hold=$row['reason'];
echo $hold;
?></th>
<th><?php $hold = $row['summary'];
echo $hold;
?>
</th>
</tr>
<?php
}
}
else {
?>
<script type="text/javascript">
alert("Payment cancelled! Recheck Case Id");
location='payment.php';
</script>
<?php
}
$con->close();
?>
</table>
</html>