Jump to content

[SOLVED] Time Fix - PHP - Help


stevekasy

Recommended Posts

A lot of people helped me out yesterday, so first thanks for that. Now I am running into another problem.

 

I am running into a minor problem... the code below works, but I am trying to adjust the timestamping. Essentially my server is 5 hours ahead of local time, so I would want to subtract 5 hours from each time function. Can someone adjust my code?

 

Thanks for your help.

 

<?php

//constants - teamID's
define('REDSOX', 2);
define('YANKEES', 3);
define('BLUEJAYS', 5);
define('ORIOLES', 1);
define('DEVILRAYS', 4);
define('INDIANS', 7);
define('WHITESOX', 6);
define('TWINS', 10);
define('TIGERS', ;
define('ROYALS', 9);
define('ATHLETICS', 12);
define('ANGELS', 11);
define('MARINERS', 13);
define('RANGERS', 14);
define('BRAVES', 15);
define('MARLINS', 16);
define('PHILLIES', 19);
define('NATIONALS', 17);
define('METS', 18);
define('ASTROS', 22);
define('REDS', 21);
define('PIRATES', 24);
define('CARDINALS', 25);
define('CUBS', 20);
define('BREWERS', 23);
define('DIAMONDBACKS', 26);
define('ROCKIES', 27);
define('DODGERS', 28);
define('PADRES', 29);
define('GIANTS', 30);

$updatetimes = array();
$updatetimes[0][0] = "N/A"; //place holder, team ID's start at 1
$updatetimes[0][1] = "N/A"; //place holder, team ID's start at 1

//initialize array values
for($ii=1;$ii<=30;$ii++) {
  $updatetimes[$ii][0] = "No update record";
  $updatetimes[$ii][1] = "old";
}

?>
<html>
<head>
<title>Squeeze Play - Export Tracker</title>
</head>

<body>
<div align=center>
<?php
//search league directory for team exports
if($dir = @opendir("league")) {
  while(false != ($file = @readdir($dir))) {
    $len = strlen($file);
    if(substr($file, $length - 3) == "EXP") {  //valid export
      //get team ID
      $pos = strpos($file, ".");
      $teamid = intval(substr($file, 4, $pos));

      //file modify time will be when it was uploaded
      $filestats = array();
      if(!$filestats = stat("league/$file")) {
echo "Error: could not retrieve file infomation for league/$file<br>\n";
exit;
      }
      //format modify time and update array
      $lastmodify = date("n/j/Y h:i A", $filestats[9]);
      $updatetimes[$teamid][0] = $lastmodify;
      $updatetimes[$teamid][1] = "league";
    }
  }
} else {
  echo "<b>Error: could not open league directory</b><br>\n";
}

//now we want to repeat the process for the Old Exports directory
//only update the array if the value is "No update record" (no current export file found)
if($dir = @opendir("Old Exports")) {
  while(false != ($file = @readdir($dir))) {
    $len = strlen($file);
    if(substr($file, $length - 3) == "EXP") {  //valid export
      //get team ID
      $pos = strpos($file, ".");
      $teamid = intval(substr($file, 4, $pos));

      //don't update update time if there is something set
      if($updatetimes[$teamid][0] == "No update record") {
//file modify time will be when it was uploaded
$filestats = array();
if(!$filestats = stat("Old Exports/$file")) {
  echo "Error: could not retrieve file infomation for Old Exports/$file<br>\n";
  exit;
}
//format modify time and update array
$lastmodify = date("n/j/Y h:i A", $filestats[9]);
$updatetimes[$teamid][0] = $lastmodify;
$updatetimes[$teamid][1] = "old";
      }
    }
  }
} else {
  echo "<b>Error: could not open Old Exports directory</b><br>\n";
}

//now output the last access times for each team
?>
<table border=0 cellpadding=5 cellspacing=0 align=center>
  <tr>
    <td>
<center>
<br>
<br>
<font face="Arial" size=4><b>Squeeze Play - Team Export Tracker</b></font>
    <br>
    <font face="Arial" size=2><b>current export</b></font><br>
    <font face="Arial" size=2 color=red>old export</font></center>
    </td>
  </tr>
</table>
<br>
  <table border=0 cellpadding=3 cellspacing=0 width=90%>
    <tr>
      <td colspan=2 align=center><font face="Arial" size=2><b>East</b></font></td>
      <td colspan=2 align=center><font face="Arial" size=2><b>East</b></font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Baltimore Orioles</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ORIOLES][1] == "league") {
      echo "<b>".$updatetimes[ORIOLES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ORIOLES][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Atlanta Braves</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[bRAVES][1] == "league") {
      echo "<b>".$updatetimes[bRAVES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[bRAVES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Boston Red Sox</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[REDSOX][1] == "league") {
      echo "<b>".$updatetimes[REDSOX][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[REDSOX][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Florida Marlins</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[MARLINS][1] == "league") {
      echo "<b>".$updatetimes[MARLINS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[MARLINS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>New York Yankees</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[YANKEES][1] == "league") {
      echo "<b>".$updatetimes[YANKEES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[YANKEES][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Washington Nationals</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[NATIONALS][1] == "league") {
      echo "<b>".$updatetimes[NATIONALS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[NATIONALS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Tampa Bay Devil Rays</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[DEVILRAYS][1] == "league") {
      echo "<b>".$updatetimes[DEVILRAYS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[DEVILRAYS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>New York Mets</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[METS][1] == "league") {
      echo "<b>".$updatetimes[METS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[METS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Toronto Blue Jays</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[bLUEJAYS][1] == "league") {
      echo "<b>".$updatetimes[bLUEJAYS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[bLUEJAYS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Philadelphia Phillies</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[PHILLIES][1] == "league") {
      echo "<b>".$updatetimes[PHILLIES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[PHILLIES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td colspan=2 align=center> <font face="Arial" size=2><b>Central</b></font></td>
      <td colspan=2 align=center> <font face="Arial" size=2><b>Central</b></font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Chicago White Sox</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[WHITESOX][1] == "league") {
      echo "<b>".$updatetimes[WHITESOX][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[WHITESOX][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Chicago Cubs</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[CUBS][1] == "league") {
      echo "<b>".$updatetimes[CUBS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[CUBS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Cleveland Indians</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[iNDIANS][1] == "league") {
      echo "<b>".$updatetimes[iNDIANS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[iNDIANS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Cincinnatti Reds</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[REDS][1] == "league") {
      echo "<b>".$updatetimes[REDS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[REDS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Detroit Tigers</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[TIGERS][1] == "league") {
      echo "<b>".$updatetimes[TIGERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[TIGERS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Houston Astros</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ASTROS][1] == "league") {
      echo "<b>".$updatetimes[ASTROS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ASTROS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Kansas City Royals</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ROYALS][1] == "league") {
      echo "<b>".$updatetimes[ROYALS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ROYALS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Milwaukee Brewers</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[bREWERS][1] == "league") {
      echo "<b>".$updatetimes[bREWERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[bREWERS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Minnesota Twins</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[TWINS][1] == "league") {
      echo "<b>".$updatetimes[TWINS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[TWINS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Pittsburgh Pirates</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[PIRATES][1] == "league") {
      echo "<b>".$updatetimes[PIRATES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[PIRATES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td colspan=2> </td>
      <td><font face="monotype corsiva"><strong>St. Louis Cardinals</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[CARDINALS][1] == "league") {
      echo "<b>".$updatetimes[CARDINALS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[CARDINALS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td colspan=2 align=center><font face="Arial" size=2><b> West</b></font></td>
      <td colspan=2 align=center><font face="Arial" size=2><b>West</b></font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Anaheim Angels</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ANGELS][1] == "league") {
      echo "<b>".$updatetimes[ANGELS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ANGELS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Arizona Diamondbacks</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[DIAMONDBACKS][1] == "league") {
      echo "<b>".$updatetimes[DIAMONDBACKS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[DIAMONDBACKS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Oakland Athletics</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ATHLETICS][1] == "league") {
      echo "<b>".$updatetimes[ATHLETICS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ATHLETICS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Colorado Rockies</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ROCKIES][1] == "league") {
      echo "<b>".$updatetimes[ROCKIES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ROCKIES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Seattle Mariners</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[MARINERS][1] == "league") {
      echo "<b>".$updatetimes[MARINERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[MARINERS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Los Angeles Dodgers</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[DODGERS][1] == "league") {
      echo "<b>".$updatetimes[DODGERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[DODGERS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Texas Rangers</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[RANGERS][1] == "league") {
      echo "<b>".$updatetimes[RANGERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[RANGERS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>San Diego Padres</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[PADRES][1] == "league") {
      echo "<b>".$updatetimes[PADRES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[PADRES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td colspan=2> </td>
      <td><font face="monotype corsiva"><strong>San Francisco Giants</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[GIANTS][1] == "league") {
      echo "<b>".$updatetimes[GIANTS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[GIANTS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
  </table>
</div>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/39037-solved-time-fix-php-help/
Share on other sites

I think this is the most relevant code...

 

<?php

$updatetimes = array();
$updatetimes[0][0] = "N/A"; //place holder, team ID's start at 1
$updatetimes[0][1] = "N/A"; //place holder, team ID's start at 1

//initialize array values
for($ii=1;$ii<=30;$ii++) {
  $updatetimes[$ii][0] = "No update record";
  $updatetimes[$ii][1] = "old";
}

?>
<?php
//search league directory for team exports
if($dir = @opendir("league")) {
  while(false != ($file = @readdir($dir))) {
    $len = strlen($file);
    if(substr($file, $length - 3) == "EXP") {  //valid export
      //get team ID
      $pos = strpos($file, ".");
      $teamid = intval(substr($file, 4, $pos));

      //file modify time will be when it was uploaded
      $filestats = array();
      if(!$filestats = stat("league/$file")) {
echo "Error: could not retrieve file infomation for league/$file<br>\n";
exit;
      }
      //format modify time and update array
      $lastmodify = date("n/j/Y h:i A", $filestats[9]);
      $updatetimes[$teamid][0] = $lastmodify;
      $updatetimes[$teamid][1] = "league";
    }
  }
} else {
  echo "<b>Error: could not open league directory</b><br>\n";
}

//now we want to repeat the process for the Old Exports directory
//only update the array if the value is "No update record" (no current export file found)
if($dir = @opendir("Old Exports")) {
  while(false != ($file = @readdir($dir))) {
    $len = strlen($file);
    if(substr($file, $length - 3) == "EXP") {  //valid export
      //get team ID
      $pos = strpos($file, ".");
      $teamid = intval(substr($file, 4, $pos));

      //don't update update time if there is something set
      if($updatetimes[$teamid][0] == "No update record") {
//file modify time will be when it was uploaded
$filestats = array();
if(!$filestats = stat("Old Exports/$file")) {
  echo "Error: could not retrieve file infomation for Old Exports/$file<br>\n";
  exit;
}
//format modify time and update array
$lastmodify = date("n/j/Y h:i A", $filestats[9]);
$updatetimes[$teamid][0] = $lastmodify;
$updatetimes[$teamid][1] = "old";
      }
    }
  }
} else {
  echo "<b>Error: could not open Old Exports directory</b><br>\n";
}

Or perhaps even more specifically...

 

    $filestats = array();
      if(!$filestats = stat("league/$file")) {
echo "Error: could not retrieve file infomation for league/$file<br>\n";
exit;
      }
      //format modify time and update array
      $lastmodify = date("n/j/Y h:i A", $filestats[9]);
      $updatetimes[$teamid][0] = $lastmodify;
      $updatetimes[$teamid][1] = "league";
    }
  }
} else {

 

The server time is 5:03 PM (now) and I am currently in the United States EST and my time is 12:04 PM...

 

I would like the code to be modified to be my time.

Add this to the top of your script!

 

$offset = '+5';

 

Then everywhere you use date(), change that, this...

 

$lastmodify = date("n/j/Y h:i A", $filestats[9]);

 

to this...

 

$lastmodify = date("n/j/Y h:i A", $filestats[9] - ( 3600 * $offset ) );

 

printf

 

Add this to the top of your script!

 

$offset = '+5';

 

Then everywhere you use date(), change that, this...

 

$lastmodify = date("n/j/Y h:i A", $filestats[9]);

 

to this...

 

$lastmodify = date("n/j/Y h:i A", $filestats[9] - ( 3600 * $offset ) );

 

printf

 

 

Thanks I am going to try this now..

Add this to the top of your script!

 

$offset = '+5';

 

Then everywhere you use date(), change that, this...

 

$lastmodify = date("n/j/Y h:i A", $filestats[9]);

 

to this...

 

$lastmodify = date("n/j/Y h:i A", $filestats[9] - ( 3600 * $offset ) );

 

printf

 

 

Thanks I am going to try this now..

 

I did that and now I get an error @ line 48

 

48 ---> $updatetimes = array();

$updatetimes[0][0] = "N/A"; //place holder, team ID's start at 1

$updatetimes[0][1] = "N/A"; //place holder, team ID's start at 1

 

Whole code is posted above... (and edits below)

 

<?php
//constants - teamID's
define('REDSOX', 2);
define('YANKEES', 3);
define('BLUEJAYS', 5);
define('ORIOLES', 1);
define('DEVILRAYS', 4);
define('INDIANS', 7);
define('WHITESOX', 6);
define('TWINS', 10);
define('TIGERS', ;
define('ROYALS', 9);
define('ATHLETICS', 12);
define('ANGELS', 11);
define('MARINERS', 13);
define('RANGERS', 14);
define('BRAVES', 15);
define('MARLINS', 16);
define('PHILLIES', 19);
define('NATIONALS', 17);
define('METS', 18);
define('ASTROS', 22);
define('REDS', 21);
define('PIRATES', 24);
define('CARDINALS', 25);
define('CUBS', 20);
define('BREWERS', 23);
define('DIAMONDBACKS', 26);
define('ROCKIES', 27);
define('DODGERS', 28);
define('PADRES', 29);
define('GIANTS', 30);

$offset = '+5'
$updatetimes = array();
$updatetimes[0][0] = "N/A"; //place holder, team ID's start at 1
$updatetimes[0][1] = "N/A"; //place holder, team ID's start at 1

//initialize array values
for($ii=1;$ii<=30;$ii++) {
  $updatetimes[$ii][0] = "No update record";
  $updatetimes[$ii][1] = "old";
}

?>
<html>
<head>
<title>Squeeze Play - Export Tracker</title>
</head>

<body>
<div align=center>
<?php
//search league directory for team exports
if($dir = @opendir("league")) {
  while(false != ($file = @readdir($dir))) {
    $len = strlen($file);
    if(substr($file, $length - 3) == "EXP") {  //valid export
      //get team ID
      $pos = strpos($file, ".");
      $teamid = intval(substr($file, 4, $pos));

      //file modify time will be when it was uploaded
      $filestats = array();
      if(!$filestats = stat("league/$file")) {
echo "Error: could not retrieve file infomation for league/$file<br>\n";
exit;
      }
      //format modify time and update array
      $lastmodify = date("n/j/Y h:i A", $filestats[9]-(3600*$offset));
      $updatetimes[$teamid][0] = $lastmodify;
      $updatetimes[$teamid][1] = "league";
    }
  }
} else {
  echo "<b>Error: could not open league directory</b><br>\n";
}

//now we want to repeat the process for the Old Exports directory
//only update the array if the value is "No update record" (no current export file found)
if($dir = @opendir("Old Exports")) {
  while(false != ($file = @readdir($dir))) {
    $len = strlen($file);
    if(substr($file, $length - 3) == "EXP") {  //valid export
      //get team ID
      $pos = strpos($file, ".");
      $teamid = intval(substr($file, 4, $pos));

      //don't update update time if there is something set
      if($updatetimes[$teamid][0] == "No update record") {
//file modify time will be when it was uploaded
$filestats = array();
if(!$filestats = stat("Old Exports/$file")) {
  echo "Error: could not retrieve file infomation for Old Exports/$file<br>\n";
  exit;
}
//format modify time and update array
$lastmodify = date("n/j/Y h:i A", $filestats[9]-(3600*$offset));
$updatetimes[$teamid][0] = $lastmodify;
$updatetimes[$teamid][1] = "old";
      }
    }
  }
} else {
  echo "<b>Error: could not open Old Exports directory</b><br>\n";
}

//now output the last access times for each team
?>
<table border=0 cellpadding=5 cellspacing=0 align=center>
  <tr>
    <td>
<center>
<br>
<br>
<font face="Arial" size=4><b>Squeeze Play - Team Export Tracker</b></font>
    <br>
    <font face="Arial" size=2><b>current export</b></font><br>
    <font face="Arial" size=2 color=red>old export</font></center>
    </td>
  </tr>
</table>
<br>
  <table border=0 cellpadding=3 cellspacing=0 width=90%>
    <tr>
      <td colspan=2 align=center><font face="Arial" size=2><b>East</b></font></td>
      <td colspan=2 align=center><font face="Arial" size=2><b>East</b></font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Baltimore Orioles</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ORIOLES][1] == "league") {
      echo "<b>".$updatetimes[ORIOLES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ORIOLES][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Atlanta Braves</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[bRAVES][1] == "league") {
      echo "<b>".$updatetimes[bRAVES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[bRAVES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Boston Red Sox</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[REDSOX][1] == "league") {
      echo "<b>".$updatetimes[REDSOX][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[REDSOX][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Florida Marlins</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[MARLINS][1] == "league") {
      echo "<b>".$updatetimes[MARLINS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[MARLINS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>New York Yankees</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[YANKEES][1] == "league") {
      echo "<b>".$updatetimes[YANKEES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[YANKEES][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Washington Nationals</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[NATIONALS][1] == "league") {
      echo "<b>".$updatetimes[NATIONALS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[NATIONALS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Tampa Bay Devil Rays</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[DEVILRAYS][1] == "league") {
      echo "<b>".$updatetimes[DEVILRAYS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[DEVILRAYS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>New York Mets</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[METS][1] == "league") {
      echo "<b>".$updatetimes[METS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[METS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Toronto Blue Jays</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[bLUEJAYS][1] == "league") {
      echo "<b>".$updatetimes[bLUEJAYS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[bLUEJAYS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Philadelphia Phillies</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[PHILLIES][1] == "league") {
      echo "<b>".$updatetimes[PHILLIES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[PHILLIES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td colspan=2 align=center> <font face="Arial" size=2><b>Central</b></font></td>
      <td colspan=2 align=center> <font face="Arial" size=2><b>Central</b></font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Chicago White Sox</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[WHITESOX][1] == "league") {
      echo "<b>".$updatetimes[WHITESOX][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[WHITESOX][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Chicago Cubs</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[CUBS][1] == "league") {
      echo "<b>".$updatetimes[CUBS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[CUBS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Cleveland Indians</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[iNDIANS][1] == "league") {
      echo "<b>".$updatetimes[iNDIANS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[iNDIANS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Cincinnatti Reds</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[REDS][1] == "league") {
      echo "<b>".$updatetimes[REDS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[REDS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Detroit Tigers</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[TIGERS][1] == "league") {
      echo "<b>".$updatetimes[TIGERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[TIGERS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Houston Astros</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ASTROS][1] == "league") {
      echo "<b>".$updatetimes[ASTROS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ASTROS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Kansas City Royals</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ROYALS][1] == "league") {
      echo "<b>".$updatetimes[ROYALS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ROYALS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Milwaukee Brewers</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[bREWERS][1] == "league") {
      echo "<b>".$updatetimes[bREWERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[bREWERS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Minnesota Twins</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[TWINS][1] == "league") {
      echo "<b>".$updatetimes[TWINS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[TWINS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Pittsburgh Pirates</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[PIRATES][1] == "league") {
      echo "<b>".$updatetimes[PIRATES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[PIRATES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td colspan=2> </td>
      <td><font face="monotype corsiva"><strong>St. Louis Cardinals</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[CARDINALS][1] == "league") {
      echo "<b>".$updatetimes[CARDINALS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[CARDINALS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td colspan=2 align=center><font face="Arial" size=2><b> West</b></font></td>
      <td colspan=2 align=center><font face="Arial" size=2><b>West</b></font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Anaheim Angels</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ANGELS][1] == "league") {
      echo "<b>".$updatetimes[ANGELS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ANGELS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Arizona Diamondbacks</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[DIAMONDBACKS][1] == "league") {
      echo "<b>".$updatetimes[DIAMONDBACKS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[DIAMONDBACKS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Oakland Athletics</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ATHLETICS][1] == "league") {
      echo "<b>".$updatetimes[ATHLETICS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ATHLETICS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Colorado Rockies</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[ROCKIES][1] == "league") {
      echo "<b>".$updatetimes[ROCKIES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[ROCKIES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Seattle Mariners</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[MARINERS][1] == "league") {
      echo "<b>".$updatetimes[MARINERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[MARINERS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>Los Angeles Dodgers</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[DODGERS][1] == "league") {
      echo "<b>".$updatetimes[DODGERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[DODGERS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td><font face="monotype corsiva"><strong>Texas Rangers</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[RANGERS][1] == "league") {
      echo "<b>".$updatetimes[RANGERS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[RANGERS][0]."\n";
    }
    ?>
        </font></td>
      <td><font face="monotype corsiva"><strong>San Diego Padres</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[PADRES][1] == "league") {
      echo "<b>".$updatetimes[PADRES][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[PADRES][0]."\n";
    }
    ?>
        </font></td>
    </tr>
    <tr>
      <td colspan=2> </td>
      <td><font face="monotype corsiva"><strong>San Francisco Giants</strong></font></td>
      <td><font face="Arial" size=2>
        <?php
    if($updatetimes[GIANTS][1] == "league") {
      echo "<b>".$updatetimes[GIANTS][0]."</b>\n";
    } else {
      echo "<font color=red>".$updatetimes[GIANTS][0]."\n";
    }
    ?>
        </font></td>
    </tr>
  </table>
</div>
</body>
</html>

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.