나는 두 가지 업데이트 문서를 쿼리하지만,하나의 작품입니다. 나는 주석으로 첫 번째 중 하나는 작품을 시도하는 두 번째 하나입니다. 을 때 나 dd
it true 를 반환합니다 하지만 테이블이 업데이트되지 않습니다. 할 수 있는 누군가가 나에게 무엇을 해야 합니까? 감사
여기에는 쿼리
$q = "UPDATE data_file SET
file_name=?,file_size=?
WHERE module_id = ". $this->module_id;
$date = date('Y-m-d H:i:s');
$updateStmt = $this->conn->prepare($q);
$updateStmt->execute([
$this->file_name,
$this->file_size,
]);
//this query returns true but not updating the database
$q1 = "UPDATE server_status SET file_start = ? AND gps_start = ? WHERE module_id = ". $this->module_id;
$updateStmnt2 = $this->conn->prepare($q1);
$stat = $updateStmnt2->execute([
1,
$date
]);
//query 2 end
Responses::http_ok();