-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signup doesnt work #13
Comments
If you're seeing the PHP source code in the browser, please see this video. |
Thanks, Ill also add the php path to the system varibales, and open the xamp folder (in which the document will be )in visual studio code and code in there. Ill try it out later. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First i tryed to make the code work on my test website, didnt work. Then I copied the exact code you provided without anything else. once i click submit I only get this displayed :
stmt_init(); if ( ! $stmt->prepare($sql)) { die("SQL error: " . $mysqli->error); } $stmt->bind_param("sss", $_POST["name"], $_POST["email"], $password_hash); if ($stmt->execute()) { header("Location: signup-success.html"); exit; } else { if ($mysqli->errno === 1062) { die("email already taken"); } else { die($mysqli->error . " " . $mysqli->errno); } } ?>
The text was updated successfully, but these errors were encountered: