|
|||||||||||||||||||||||||||||
![]() |
|
![]() |
|||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
|
include_once("../connect.php");
$dt = date("d/m/Y");
$ips = $_SERVER['REMOTE_ADDR'];
$sqlSelect = "select * From counter_webEN where date_visit='$dt' and ip_visit='$ips'";
$resSelect = mysql_query($sqlSelect);
$rows = mysql_num_rows($resSelect);
if($rows <= 0){
$sqlUp="INSERT INTO counter_webEN VALUES ('','$dt','$ips');";
$resUp = mysql_query($sqlUp);
}
$sqlSelect = "Select count(ip_visit) as visit From counter_webEN;";
$resSelect = mysql_query($sqlSelect);
$rsct = mysql_fetch_array($resSelect);
$sqlSelect1 = "Select count(date_visit) as date From counter_webEN where date_visit = '$dt';";
$resSelect1 = mysql_query($sqlSelect1);
$rsct1 = mysql_fetch_array($resSelect1);
?>
View all Website View Today |
|||||||||||||||||||||||||||||
| ©2012 The Center for Cooperative Education and Career Development Suranaree University of Technology 111 University Avenue, Muang District, Nakhon Ratchasima 30000, THAILAND Tel : 0-4422-3046-57 Fax : 0-4422-3045,53 E-mail : coop@sut.ac.th Contact Web Master 0-4422-3098 |
|||||||||||||||||||||||||||||