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