我收到以下错误得到错误PDO/SQL
链接DBconfig.php - >
链接代码 - >
灿你们请帮助我;)
谢谢!
我的代码 - >
<?php
include '../header.php';
include '../dbconfig.php';
if(isset($_POST['registreer'])){
$naam = $_POST['naam'];
$email = $_POST['email'];
$wachtwoord = $_POST['wachtwoord'];
$insert = $db->prepare("INSERT INTO klant(naam, adres, postcode, email, password)
values(:name, :adres, :postcode, :woonplaats, :email, :pass) ");
$insert->bindParam(':naam',$naam);
$insert->bindParam(':adres',$adres);
$insert->bindParam(':postcode',$postcode);
$insert->bindParam(':woonplaats',$woonplaats);
$insert->bindParam(':email',$email);
$insert->bindParam(':wachtwoord',$wachtwoord);
$insert->execute();
}
?>
你的代码和错误信息添加到这个问题。 – chris85
这是链接到代码 - > https://gyazo.com/cb0f64c9243057df1970075838967a49 – EazyNation
代码需要在这里,你至少有2个拼写错误,我可以从屏幕截图中看到 – chris85