PHP
<?php
$user = stripslashes($_POST['user']);
$password = stripslashes($_POST['password']);
$timestamp = time();
$ip = getenv("REMOTE_ADDR");
$connect = mysql_connect("localhost", "asdf", "...");
mysql_select_db("asdf");
if (mysql_query("INSERT INTO suchmaschine (user, password, timestamp, ip) VALUES ('$user', '$password', '$timestamp', '$ip')") !== false ) {
echo "<a href=\"url.tld/auslesen.php?id=".mysql_insert_id()."\">Klick mich</a>";
}
mysql_close($connect);
?>
Alles anzeigen
kann mir mal bitte jemand sagen, warum das nicht funktioniert?