die add.php
PHP-Code:
<?
$db_host = "localhost";
$db_name = "usr_web85_3";
$db_tabelle = "zugriff";
$db_user = "web85";
$db_password = "****";
function opendb() {
global $db_host;
global $db_user;
global $db_password;
global $db_name;
@$handle = mysql_connect ($db_host, $db_user, $db_password);
if ($handle) {
if (!(mysql_select_db ($db_name, $handle))) {
$handle = FALSE;
}
}
return $handle;
}
$insert = "INSERT INTO $db_tabelle (name, pass, email) VALUES (' ".$name."' ,'".$pass."', ' ".$email." ')";
mysql_query($insert, $connect);
echo "sie wurden erfolgreich registriert";
?>
Kommentar