我要
致命错误:未捕获的PDOException:SQLSTATE [21S01]:插入值列表 与列列表不匹配:1136列数与值不匹配 计数在C:\ xampp \ htdocs \ xyz \ x \ class.user.php:142 PDOStatement-> execute()#1
的第一行
public function add_post($user_id,$status) {
$stmt = $this->conn->prepare("INSERT INTO posts (post_id, user_id_p, status, status_time) VALUES(:user_id, :status, CURRENT_TIMESTAMP)");
$stmt->bindParam(":user_id", $user_id);
$stmt->bindParam(":status", $status);
$stmt->execute();
return $stmt;
header('Location: index.php');
}