$value)
{
$value = strtr($value, get_html_translation_table(HTML_ENTITIES));
$keys .= "´$key´, ";
$values .= "'".$value."', ";
}
$keys = substr($keys, 0, -2);
$values = substr($values, 0, -2);
$sql = "INSERT INTO $table (".$keys.") VALUES (".$values.")";
mysql_query($sql, $con);
}
mysqlinsert('User', $con, $_POST);
$Erg = mysql_affected_rows();
if ($Erg != 1)
{
echo "Fehler: Kann die eingegebenen Daten nicht sichern?!?
";
echo "\n
Die Anmeldung war erfolgreich."; $SQL2 = "SELECT UID FROM `User` WHERE Nick='". $_POST["Nick"]. "';"; $Erg2 = mysql_query($SQL2, $con); $Data = mysql_fetch_array($Erg2); $SQL3 = "INSERT INTO `UserCVS` (`UID`) VALUES (". $Data["UID"]. ");"; $Erg3 = mysql_query($SQL3, $con); if ($Erg3 != 1) { echo "
\n$error\n
"; } } else { //init vars $_POST["Nick"] = ""; $_POST["Name"] = ""; $_POST["Vorname"] = ""; $_POST["Alter"] = ""; $_POST["Telefon"] = ""; $_POST["DECT"] = ""; $_POST["Handy"] = ""; $_POST["email"] = ""; $_POST["Size"] = ""; $_POST["Art"] = ""; $_POST["kommentar"] = ""; } ?>