0
存儲過程和插入
嗨即時通訊當前正在運行的存儲procedurs爲select查詢,但遇到了INSERT的麻煩對PHP的一部分的語法爲PDO
$stmt = $db->prepare('makereview(:title, :user, :rating, :description)');
$stmt->bindValue(':title', $title, PDO::PARAM_INT);
$stmt->bindValue(':user', $user, PDO::PARAM_STR);
$stmt->bindValue(':rating', $rating, PDO::PARAM_INT);
$stmt->bindValue(':description', $description, PDO::PARAM_INT);
$stmt->execute();
它拋出的錯誤是語法上的錯誤做準備行不知道爲什麼,程序是正確的,但它似乎不喜歡嘗試呼叫。