include('db.php'); $ip=$_SERVER['REMOTE_ADDR']; $page=$_SERVER['REQUEST_URI']; //date_default_timezone_set('Asia/Kolkata'); //$date = date('m/d/Y h:i:s a', time()); $sql=mysql_query("INSERT into visitor(`page_name`,`ip`,) values ('$page','$ip');"); ?>