-
Notifications
You must be signed in to change notification settings - Fork 86
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
Not able to display the message "email already exist" #1
Comments
What exactly is the error that you get? |
it's because you have to replace : by : I hope this was useful to you 😃 |
Just to be clear, the above fix is only if you're using a version of PHP prior to version 8. Named arguments are supported from PHP 8 onwards. |
signup-process.php : an error occurred in mentioned file,Error showed in browser: Fatal error: Uncaught mysqli_sql_exception: Duplicate entry '[email protected]' for key 'email' in C:\xampp\htdocs\php-signup-login-main\process-signup.php:45 Stack trace: #0 C:\xampp\htdocs\php-signup-login-main\process-signup.php(45): mysqli_stmt->execute() #1 {main} thrown in C:\xampp\htdocs\php-signup-login-main\process-signup.php on line 45 Mentioned error line: if ($stmt->execute()) {
} else {
} |
Please see this issue to see if any of the fixes there work for you. |
signup-process.php : an error occurred in mentioned file,
why these lines of codes doesn't work
}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: