阅读背景:

当Bind_param()具有UPDATE语句时,列计数与第1行的值计数不匹配

来源:互联网 

Here is my code:

这是我的代码:

public function deletePost($postId,$userId){
    $stmt = $this->conn->prepare("UPDATE post SET active_status = ? ,modified_by =? ,modified_time=? WHERE post_id=?");
    $notActivePost = 0;
    $currentTime = $this->getCurrentTime();
    $stmt->bind_param("ssss",$notActivePost,$userId,$currentTime,$postId);
    $res = $stmt->execute();
    var_dump($notActivePost,$currentTime,$postId,$userId);
    var_dump($stmt->error_list);
    return $res;
}
public function de



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: