I'm trying to make a very simple registration system. All of the code works with the exception of inserting it into the database, here is the code that I'm using, but when I click "submit" on my form, it outputs "Error." which I told it to if there was an error. Any assistance on this would be great and I appreciate it! 🙂
if ($submit == "Submit") {
$sql = "INSERT INTO user (Name,Password) VALUES($Name,md5($Password))";
if (@mysql_query($sql)) {
echo( "Registered." );
} else {
echo( "Error." );
}
}