Выдает Ошибку
Как исправить?)
Fatal error: Uncaught ArgumentCountError: The number of elements in the type definition string must match the number of bind variables in D:\OpenServer\domains\localhost\auth\postsignup.php:41 Stack trace: #0 D:\OpenServer\domains\localhost\auth\postsignup.php(41): mysqli_stmt->bind_param() #1 {main} thrown in D:\OpenServer\domains\localhost\auth\postsignup.php on line 41
if(empty($errors)){
$sql = "INSERT INTO `users` (`name`, `username`, `email`, `password`) VALUES (?,?,?,?)";
$stmt = $link->prepare($sql);
$stmt->bind_param($name, $username, $email, $hash);
$stmt->execute();
if($stmt === true){
header("Location: signin.php");
}else{
header("Location: signup.php");
}
}else{
header("Location: signup.php");
}