"全包", "B" => "半包", "C" => "清包", "D" => "2個月保養一次"]; $data = array(); # 設置一個空陣列來放資料 $sql = "SELECT * FROM schedule where ((repairerid = '$repairerid') and ((actualdate IS NULL) or (actualdate = ''))) order by duedate"; # sql語法存在變數中 if ($repairerid == "M0089") { $sql = "SELECT * FROM schedule where ((repairerid = '$repairerid') and ((actualdate IS NULL) or (actualdate = ''))) and duedate >= '2023-04-01' order by duedate"; } $data = mysqli_query($link,$sql); # 用mysqli_query方法執行(sql語法)將結果存在變數中 #$next_path = "app-maintenance-upload-byparts.php"; $next_path = "app-maintenance-upload-allparts.php"; ?>
保養計畫