= '$timecheck' "; $result = mysql_query($sql); $row = mysql_fetch_array($result); $stat_now = $row["ct_count"]; // แสดงสถิติเข้าชมคณะนี้ $sql = " select SUM(ct_count) AS ct_count from web_counter where ct_dd = '$ct_dd' AND ct_mm = '$ct_mm' AND ct_yyyy = '$ct_yyyy' "; $result = mysql_query($sql); $row = mysql_fetch_array($result); $stat_dd = $row["ct_count"]; // แสดงสถิติวันนี้ $sql = " select SUM(ct_count) AS ct_count from web_counter where ct_dd = '$ct_dd'-1 AND ct_mm = '$ct_mm' AND ct_yyyy = '$ct_yyyy' "; $result = mysql_query($sql); $row = mysql_fetch_array($result); $stat_yd = $row["ct_count"]; // แสดงสถิติเมื่อวาน $sql = " select SUM(ct_count) AS ct_count from web_counter where ct_mm = '$ct_mm' AND ct_yyyy = '$ct_yyyy' "; $result = mysql_query($sql); $row = mysql_fetch_array($result); $stat_mm = $row["ct_count"]; // แสดงสถิติเดือนนี้ $sql = " select SUM(ct_count) AS ct_count from web_counter where ct_mm = '$ct_mm'-1 AND ct_yyyy = '$ct_yyyy' "; $result = mysql_query($sql); $row = mysql_fetch_array($result); $stat_ym = $row["ct_count"]; // แสดงสถิติเดือนที่แล้ว $sql = " select SUM(ct_count) AS ct_count from web_counter where ct_yyyy = '$ct_yyyy' "; $result = mysql_query($sql); $row = mysql_fetch_array($result); $stat_yyyy = $row["ct_count"]; // แสดงสถิติปีนี้ $sql = " select SUM(ct_count) AS ct_count from web_counter "; $result = mysql_query($sql); $row = mysql_fetch_array($result); $stat_all = $row["ct_count"]; // แสดงสถิติทั้งหมด include("endconnect.php"); ?>
$timeout) { $all .= $pieces[1]; $all .= ","; } $i++; } $all = substr($all,0,strlen($all)-1); $arraypieces = explode(",",$all); $useronline = count(array_flip(array_flip($arraypieces))); $dell = ""; for ($numm = 0; $numm < count($datei); $numm++) { $tiles = explode("|",$datei[$numm]); if ($tiles[2] > $timeout) { $dell .= "$tiles[0]|$tiles[1]|$tiles[2]"; } } if (!$datei) $datei = dirname(__FILE__)."/$filename"; $time = @time(); $string = "$dell"; $a = fopen("$filename", "w+"); fputs($a, $string); fclose($a); ?> ออนไลน์ ip
ผู้เข้าชมวันนี้ ip
ผู้เข้าชมเดือนนี้ ip
ผู้เข้าชมปีนี้ ip
ผู้เข้าชมทั้งหมด ip
เริ่มนับ เครดิต hostpack