<?php
$server = 'localhost';
$user = 'xxxx';
$pass = 'xxxx';
$dbh = mysql_connect($server, $user, $pass);
mysql_select_db('mike4004', $dbh);
$query = "
INSERT INTO
`WUNSCH`
SET
`NAME` = '".mysql_real_escape_string($_POST['name'])."',
`PASSWORT` = '".mysql_real_escape_string($_POST['pass'])."',
`Nachname` = '".mysql_real_escape_string($_POST['Nname'])."',
`Vorname` = '".mysql_real_escape_string($_POST['Vname'])."',
`Email` = '".mysql_real_escape_string($_POST['email'])."',
`IP` = '".$_SERVER['REMOTE_ADDR']."',
`IPProxy` = '".( isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? mysql_real_escape_string($_SERVER['HTTP_X_FORWARDED_FOR']) : '' )."',
`HOST` = '".( isset($_SERVER['REMOTE_HOST']) ? mysql_real_escape_string($_SERVER['REMOTE_HOST']) : '' )."',
`SEVERIP` = '".( isset($_SERVER['SERVER_NAME']) ? mysql_real_escape_string($_SERVER['SERVER_NAME']) : '' )."',
`SCRIPT` = '".$_SERVER['SCRIPT_NAME']."',
`BROWSER` = '".$_SERVER['HTTP_USER_AGENT']."',
`DATE` = '".date("d.m.Y", $timestamp).", ".date("H:i", $timestamp)."'
";
mysql_query($query);
mysql_close($dbh);
?>