';
if($aquaN=='all'){
echo ''.$row['tankid'].' | ';
}
echo ''.gmdate("m\\/d\\/Y \@ h:i:s A",$row['glowtime']+($GMT*60*60)).' | ';
echo ''.$row['fishcount'].' | ';
echo ''.$row['glowcount'].' | ';
if($lastGlow){
echo ''.seconds2HMS($row['glowtime']-$lastGlow).' | ';
$tdiff+=($row['glowtime']-$lastGlow);
$tdiff2=$row['glowtime']-$lastGlow;
$timeData.=$tdiff2.',';
if($tdiff2>$timeHigh)
$timeHigh=$tdiff2;
if($tdiff2<$timeLow)
$timeLow=$tdiff2;
$glowStr.=$row['glowcount'].',';
}
else{
echo 'N/A | ';
}
echo ''.$row['players'].' | ';
if($aquaN!='all'){
if($lastGlow){
echo ''.number_format($row['gold']-$lastGold).' | ';
$gdiff+=($row['gold']-$lastGold);
$gdiff2=$row['gold']-$lastGold;
$data.=($row['gold']-$lastGold).",";
$Pdata.=$row['players'].',';
if($gdiff2>$highData)
$highData=$gdiff2;
if($row['players']>$Phigh)
$Phigh=$row['players'];
}
else{
echo 'N/A | ';
}
}
echo ''.number_format($row['gold']).' | ';
$pcount+=$row['players'];
echo '
';
if($tdiff2){
if($tlow){
if($tlow>$tdiff2){
$tlow=$tdiff2;
}
}
else{
$tlow=$tdiff2;
}
if($thigh){
if($thigh<$tdiff2&&$tdiff2<16200){
$thigh=$tdiff2;
}
}
else{
$thigh=$tdiff2;
}
}
$fcount+=$row['fishcount'];
$gcount+=$row['glowcount'];
$lastGlow=$row['glowtime'];
$lastGold=$row['gold'];
}
mysql_close($con);
if($aquaN=='all'){
echo '