上海南站 (上海南站汽车票网上订票官网)

上海耍耍 07-17 阅读:1 评论:18





上海南站 (上海南站汽车票网上订票官网)
connect_error) {die("Connection failed: " . $conn->connect_error);}// Get the form data$from = $_POST["from"];$to = $_POST["to"];$date = $_POST["date"];$time = $_POST["time"];$passengers = $_POST["passengers"];// Prepare the SQL statement$sql = "SELECT FROM tickets WHERE from_city = ? AND to_city = ? AND departure_date = ? AND departure_time = ?";// Prepare the statement$stmt = $conn->prepare($sql);// Bind the parameters$stmt->bind_param("ssss", $from, $to, $date, $time);// Execute the statement$stmt->execute();// Get the results$result = $stmt->get_result();// Print the resultswhile ($row = $result->fetch_assoc()) {echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";}// Close the statement$stmt->close();// Close the connection$conn->close();?>
出发地 目的地 出发日期 出发时间 到达时间 票价 购买
" . $row["from_city"] . " " . $row["to_city"] . " " . $row["departure_date"] . " " . $row["departure_time"] . " " . $row["arrival_time"] . " " . $row["price"] . " 购买
版权声明

本文仅代表作者观点,不代表上海桑拿立场。
本文系作者授权发表,未经许可,不得转载。