if (!defined("IN_FUSION")) { die("Access Denied"); }
opensidex("Spreads Pool");
$sql = dbquery("SELECT * FROM table Where tot_wins>0 ORDER By tot_wins DESC Limit 0,5");
echo '<br>
<table align="center" cellspacing="1" cellpadding="3" width="100%" class="tbl-border">
<tr class="tbl2"><td width="50%"><b><center>Name</b></td><td width="25%"><b><center>Won</b></td><td width="25%"><b><center>Win Pct</b></td></tr>';
while($data = dbarray($sql))
{
echo '<tr class="tbl1"><td>'.$data['name'].'</td><td align="right">'.$data['tot_wins'].'</td><td align="right">'.$data['pct'].'</td></tr>';
}
echo '</table>
<br>';
openside("Confidence Pool");
$sql = dbquery("SELECT * FROM table1 Where cpts>0 ORDER By cpts DESC Limit 0,3");
echo '<br>
<table align="center" cellspacing="1" cellpadding="3" width="100%" class="tbl-border">
<tr class="tbl2"><td width="50%"><b><center>Name</b></td><td width="25%"><b><center>Won</b></td><td width="25%"><b><center>Conf Pts</b></td></tr>';
while($data = dbarray($sql))
{
echo '<tr class="tbl1"><td>'.$data['name'].'</td><td align="right">'.$data['tot_wins'].'</td><td align="right">'.$data['cpts'].'</td></tr>';
}
echo '</table>';
closeside();
closesidex();
Quote
jikaka wrote:
in php-fusion v7.02 function opensidex no longer used
echo "</td>";
echo "</table></center>";
if (!defined("IN_FUSION")) { die("Access Denied"); }
opensidex("Spreads Pool");
$sql = dbquery("SELECT * FROM table Where tot_wins>0 ORDER By tot_wins DESC Limit 0,5");
echo "<br>
<table align='center' cellspacing='1' cellpadding='3' width='100%' class='tbl-border'>
<tr class='tbl2'><td width='50%'><b><center>Name</b></td><td width='25%'><b><center>Won</b></td><td width='25%'><b><center>Win Pct</b></td></tr>";
while($data = dbarray($sql))
{
echo "<tr class='tbl1'><td>".$data['name']."</td><td align='right'>".$data['tot_wins']."</td><td align='right'>".$data['pct']."</td></tr>";
}
echo "</table>
<br>";
openside("Confidence Pool");
$sql = dbquery("SELECT * FROM table1 Where cpts>0 ORDER By cpts DESC Limit 0,3");
echo "<br>
<table align='center' cellspacing='1' cellpadding='3' width='100%' class='tbl-border'>
<tr class='tbl2'><td width='50%'><b><center>Name</b></td><td width='25%'><b><center>Won</b></td><td width='25%'><b><center>Conf Pts</b></td></tr>";
while($data = dbarray($sql))
{
echo "<tr class='tbl1'><td>".$data['name']."</td><td align='right'>".$data['tot_wins']."</td><td align='right'>".$data['cpts']."</td></tr>";
}
echo "</table>";
closeside();
closesidex();
Category Forum
Code Snippet and functions - 8Labels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions