-
Notifications
You must be signed in to change notification settings - Fork 0
/
rewards.php
95 lines (66 loc) · 1.61 KB
/
rewards.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<section class="resume-section p-3 p-lg-5 d-flex flex-column" id="users">
<div class="my-auto">
<h2>TEST</h2>
<div class="label">
test
</div>
<?php
require_once("config.php");
$polaczenie = mysql_connect($mysql_host,$mysql_user,$mysql_password);
//brak polaczenia nie wyswietlaj strony?
if (!$polaczenie)
{
die('not connected : ' . mysql_error());
}
else
{
//ok, wybierz baze
mysql_select_db($mysql_database);
mysql_query("set names 'utf8'");
$res = mysql_query("
select *
from
sbds_tx_claim_reward_balances
where account = 'rafalski'
order by timestamp desc
limit 10");
while ($row = mysql_fetch_row($res))
{
echo "<br/><pre>";
print_r($row);
echo "</pre>";
}
}
?>
<div class="label">
Dane aktualne do daty: <?php echo $wbazie;?>
</div>
<br />
<div class="label">
<h3>TOPLISTA</h3>
<br />
<div style="color:#0009;">
<table cellpadding="8" cellspacing="2" border="0">
<tr bgcolor="#ccc">
<td>NR.</td>
<td>NICK</td>
<td>POSTÓW</td>
</tr>
<?php
$i = 0; //row counter
foreach ($users as $key=>$val)
{
echo "<tr";
if ($i % 2 == 0)
echo " bgcolor=\"#ededed\"";
echo ">";
//link - przejscie do profilu usera juz live mysql
echo "<td>".($i+1)."</td><td>$key</td><td>$val</td></tr>";
$i++;
}
?>
</table>
</div>
</div>
</div>
</section>