diff --git a/get_vip_last_booking.php b/get_vip_last_booking.php index de0d8cb..ae07ebb 100644 --- a/get_vip_last_booking.php +++ b/get_vip_last_booking.php @@ -35,7 +35,7 @@ try { b.appointment_time DESC LIMIT 1"; - $stmt = $conn->prepare($sql); + $stmt = $pdo->prepare($sql); $stmt->bindParam(':vipId', $vipId, PDO::PARAM_INT); $stmt->execute(); $lastBooking = $stmt->fetch(PDO::FETCH_ASSOC); @@ -64,6 +64,6 @@ $response = [ echo json_encode($response); // 关闭数据库连接 -$conn = null; +$pdo = null; // 系统现在只返回实际数据库中的预约记录数据 \ No newline at end of file