Members wall
";
//Echo Table Headers
foreach ($cat as $name => $item) {
$co = 'desc';
if (isset($item['c'])) {
if ($item['c'] == $c) {
$name = "$name";
if ($o == 'DESC') {
$co = 'asc';
}
}
echo "$name | ";
} else {
echo "$name | ";
}
}
//Echo Table Data
$i = 0;
while (list($userID, $display, $moveCount, $moveCountWeek, $mazeCount, $winCount, $tieCount, $wallColor, $nameColor, $wallEmblem, $joined, $lastLogon) = mysql_fetch_row($result)) {
//Prepare data
$i++;
$joined = Date("Y-m-d", strtotime($joined));
$lastLogon = Date("Y-m-d", strtotime($lastLogon));
if (!$moveCount)
$moveCount = 0;
if (!$moveCountWeek)
$moveCountWeek = 0;
if ($lastLogon == 0)
$lastLogon = "Never";
//Prepare background for this line
$background = '#262631';
if ($i % 2 == 1)
$background = '#20202a';
if ($_SESSION['userID'] == $userID)
$background = '#343c57';
echo "
$i |
|
$display |
$mazeCount |
$moveCount |
$moveCountWeek |
$winCount |
$tieCount |
$joined |
$lastLogon |
";
}
echo "
Copyright © 2011-2012 pathery.com
";
htmlFooter();
?>