$host = "mariadb01.kbds.dk"; //Enter the address to your MySQL server here $user = "kbds_noindex"; //Enter the username to your MySQL server here $pass = "PK95Z2xuJFGGWeAW"; //Enter the password to your MySQL server here $db = "kikkenborgsdataservice_dk"; //Enter the DB in your MySQL server here mysql_connect("$host", "$user", "$pass") or die(mysql_error()); mysql_select_db($db) or die(mysql_error()); #$user_ip = $_SERVER["REMOTE_ADDR"]; #$user_agent = $_SERVER["HTTP_USER_AGENT"]; $_REQUEST["referer"]; #mysql_query("UPDATE count SET count=count+1") or die(mysql_error()); mysql_query("INSERT INTO kbds_noindex (domain, date, ip, user_agent, referer) VALUES('$_SERVER[HTTP_HOST]', now(), '$_SERVER[REMOTE_ADDR]', ' $_SERVER[HTTP_USER_AGENT]', '$_SERVER[HTTP_REFERER]')") or die(mysql_error()); ?>