= '$year-$month-31' ) AND( official_check_date IS NULL OR official_check_date = '' OR official_check_date >= '$year-$month-31' ) "; $sql .= !empty($type) ? " AND contract_type = '$type'" : ""; $sql .= !empty($mtype) ? " AND renovate_type Like '%$mtype%'" : ""; $result = mysqli_query($link, $sql); $data = mysqli_fetch_array($result, MYSQLI_ASSOC); return $data['all_count']; } ?>

在裝中統計表

(int)$radeY . $radeM) { echo "結束時間不可小於開始時間"; } ?>
(int)$radeY . $radeM) { exit; } ?>
出貨年月
種類 出貨 工收 試車完 在裝中
新梯
M1
MA
合計