config.php: stats.php hits + 1; $query = "UPDATE stats SET hits = '".$hits."' WHERE ip = '".$_SERVER['REMOTE_ADDR']."' AND datum = '".date("Y-m-d")."'"; } mysql_query($query) or die(mysql_error()); ?> index.php Statistieken :: <?php echo $conf['Titel']; ?>
Totaal
Hits: ()
Unieke hits: ()

datum."'") or die (mysql_error()); $uhits = mysql_num_rows($select); $hits = mysql_result(mysql_query("SELECT sum(hits) as total FROM stats WHERE datum = '".$get->datum."'"), 0, "total"); $total = $uhits + $hits; $bar1 = $hits / $total * 100; $bar2 = $uhits / $total * 100; $date = explode("-", $get->datum); ?>
Hits: ()
Unieke hits: ()

Statistieken script gemaakt door: XenoX Designs