connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "INSERT INTO `visitors` (`browser_type`, `ip_address`,`current_page`) VALUES ('".$_SERVER['HTTP_USER_AGENT']."', '".$_SERVER['REMOTE_ADDR']."','".$_SERVER['PHP_SELF']."');"; $conn->query($sql); $conn->close(); ?>