|
||||||||||||||||||||||||||
![]() |
|
![]() |
||||||||||||||||||||||||
|
include_once("../connect.php");
$dt = date("d/m/Y");
$ips = $_SERVER['REMOTE_ADDR'];
$sqlSelect = "select * From counter_webinter where date_visit='$dt' and ip_visit='$ips'";
$resSelect = mysql_query($sqlSelect);
$rows = mysql_num_rows($resSelect);
if($rows <= 0){
$sqlUp="INSERT INTO counter_webinter VALUES ('','$dt','$ips');";
$resUp = mysql_query($sqlUp);
}
$sqlSelect = "Select count(ip_visit) as visit From counter_webinter;";
$resSelect = mysql_query($sqlSelect);
$rsct = mysql_fetch_array($resSelect);
$sqlSelect1 = "Select count(date_visit) as date From counter_webinter where date_visit = '$dt';";
$resSelect1 = mysql_query($sqlSelect1);
$rsct1 = mysql_fetch_array($resSelect1);
?>
จำนวนผู้เข้าชมทั้งหมด จำนวนผู้เข้าชมวันนี้ |
||||||||||||||||||||||||||
| ©2012 The Center for Cooperative Education and Career Development Suranaree University of Technology 111 ถ.มหาวิทยาลัย ต.สุรนารี อ.เมือง จ.นครราชสีมา 30000 โทรศัพท์ 0-4422-3046-57 โทรสาร 0-4422-3045,53 E-mail : coop@sut.ac.th ติดต่อ Web Master 0-4422-3098 |
||||||||||||||||||||||||||