include_once($_SERVER['DOCUMENT_ROOT'] . '/includes/conn.php'); $conn = db_connect(); $server_var = mysqli_real_escape_string($conn, json_encode($_SERVER)); $insert_visit_history_sql = "INSERT INTO visit_history (ip, server_var) VALUES ('{$_SERVER['REMOTE_ADDR']}', '{$server_var}');"; $insert_visit_history_query = mysqli_query($conn, $insert_visit_history_sql); // mail('thesqlfreak@gmail.com', 'some1 visited! '.__FILE__.__LINE__, var_export($_SERVER, true)); ?>
Banana