Skip to content
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

Open
Razido01 opened this issue Jul 27, 2023 · 2 comments
Open

Signup doesnt work #13

Razido01 opened this issue Jul 27, 2023 · 2 comments

Comments

@Razido01
Copy link

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); } } ?>

@daveh
Copy link
Owner

daveh commented Jul 27, 2023

If you're seeing the PHP source code in the browser, please see this video.

@Razido01
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants