$pagetitle - "BTS Week 5 Results" ;
error_reporting(0);
include("indexedit.php") ;
list($width, $height, $type, $attr) = getimagesize("$weekrace");
list($twidth, $theight, $ttype, $tattr) = getimagesize("$weekrace");
// ADDITIONAL WINNER IF RACE ENDS IN A TIE FOR SCORE
$iftiewinner="" ;
$iftiewinnerwins="";
?>
2016 Champion: Go Left Dale
$year=2017;
$week1=7;
$lastweek=$week1-1;
$weekrace="Texas";
?>
echo "
Week $week1 Results in $weekrace" ?> |
Pos |
Name |
Score |
Selection |
Pts |
Bonus |
include ("db.php");
$btsquery=mysql_query("SELECT *,score+bonus as total FROM seasonstandings WHERE wk=$week1 Order by total DESC ") ;
$position_current = 0;
$position_count = 0;
$points_current = 0;
while ($row=mysql_fetch_array($btsquery)) {
//Set position count
$position_count++;
if ($points_current !== $row['total']) {
//New position
$points_current = $row['total'];
$position_current = $position_count;
}
//Display the current position
echo "$position_current |
{$row['name']} |
{$row['total']} |
{$row['selection']} |
{$row['score']} |
{$row['bonus']} |
";
}
echo " " ;
?>
|
/* - - - - - - - - - - - - - - - - - - - - - - -
Include PHP
Saturday, January 05, 2018
HAPedit 3.1.11.111
- - - - - - - - - - - - - - - - - - - - - - - */
$btsdbname="seasonstandings";
?> Season Standings
(After Week 7)
Pos |
Name |
Points |
1 | Real Late Model Fan | 108 | 2 | Chuck L Head | 107 | 3 | ARA Racing | 105 | 4 | Nathaniel Carruthers | 92 | 5 | Fly low-Fly fast | 73 | 6 | Minnesota Motor Heads | 71 | 6 | Draftpack3_88 | 71 | 8 | Paul Charpentier | 70 | 9 | Stormdevil | 68 | 10 | the plow | 65 | 11 | Joanne Reilley | 62 | 12 | mwsteinf | 60 | 12 | lowmac300 | 60 | 14 | Evarts Motorsports | 58 | 15 | ronblackman | 48 | 16 | mrbest | 47 | 17 | Scott mincey | 46 | 18 | champ24 | 39 | 18 | Britten Steinfels | 39 | 20 | tomcatcrowd | 35 | 21 | JG4TMR | 30 | 22 | okiewoman | 28 | 23 | Rusty Leroy Steger | 26 | 24 | Rusty Steger | 21 | 25 | John Reilley | 20 | 26 | scrbowler | 15 | 27 | Purple 10 | 11 | 28 | Purple10 | 7 | 29 | David Baartman | 6 | 30 | Duffdrinker | 0 | |
|