-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsessions.php
57 lines (41 loc) · 1.24 KB
/
sessions.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
<?php
include 'header.php';
?>
<!-- Left Content Starts Here -->
<div class="mainbar">
<p class="headings"> FOREX Recent Sessions: </p>
<table width="100%" border="1" style="border-collapse:collapse" cellpadding="2px">
<tr>
<th style='background-color: #269900;padding: 2px;'>Time</th>
<th style='background-color: #269900;padding: 2px;'>Username</th>
<th style='background-color: #269900;padding: 2px;'>Dollars</th>
</tr>
<?php
include("database.php");
$result=mysql_query("SELECT * FROM forex_sessions ORDER BY time DESC LIMIT 10");
$srno=1;
while($row=mysql_fetch_assoc($result))
{
print "<tr>";
print "<td cellpadding='2' style='background-color: #C6FFB3;padding: 2px 2px 2px;margin: 0px;'>";
print "<center>";
print htmlentities($row['time']);
print "</center>";
print "</td>";
print "<td cellpadding='2' style='background-color: #C6FFB3;padding: 2px 2px 2px;margin: 0px;'>";
print "<center>";
print htmlentities($row['login']);
print "</center>";
print "</td>";
print "<td cellpadding='2' align='right' style='background-color: #C6FFB3;padding: 2px 2px 2px;margin: 0px;'>";
print " ".$row['amount'];
print "</td>";
print "</tr>";
$srno++;
}
?>
</table>
</div>
<?php
include 'footer.php'
?>