prepare($sql); $stmt->bindParam(':status', $status); $stmt->bindParam(':resolution', $resolution); $stmt->bindParam(':id', $id); if ($stmt->execute()) { jsonSuccess(null, "Complaint updated successfully"); } else { jsonError("Failed to update complaint"); } } else { jsonError("Missing required fields"); } ?>