$tblstart $tccellh>Information $tccellc>
Daily stats for the board. This page might take a while to fully display.

$tblend
$tblstart $tccellh colspan=9>Daily stats $tccellc>Date $tccellc>Total users $tccellc>Total posts $tccellc>Total threads $tccellc>Total views $tccellc>New users $tccellc>New posts $tccellc>New threads $tccellc>New views "; $users=0; $posts=0; $threads=0; $views=0; $stats=$sql->query("SELECT * FROM dailystats"); $oldyear = ""; while($day=$sql->fetch($stats)){ $year = substr($day['date'], 6); if ($year !== $oldyear) { print " $tccellh colspan=9>20$year"; $oldyear = $year; } print " $tccell1>$day[date] $tccell2>". number_format($day['users']) ." $tccell2>". number_format($day['posts']) ." $tccell2>". number_format($day['threads']) ." $tccell2>". number_format($day['views']) ." $tccell2>". number_format($day['users']-$users)." $tccell2>". number_format($day['posts']-$posts)." $tccell2>". number_format($day['threads']-$threads)." $tccell2>". number_format($day['views']-$views)." "; $users=$day['users']; $posts=$day['posts']; $threads=$day['threads']; $views=$day['views']; } print $tblend.$footer; printtimedif($startingtime);