$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 "error: can't save your data...
transmitted. Thank you for your participation..
\n\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"] = ""; } ?>