我收到以下錯誤得到錯誤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