$year = $_POST['year'];
$selMonthSql = "SELECT DISTINCT(DATE_FORMAT(时间列,'%m')) as month FROM orders WHERE 时间列 LIKE '%$year%'";
$monthRes = getRes($selMonthSql);
转载于:https://www.cnblogs.com/Bhi9712/p/9814653.html
$year = $_POST['year'];
$selMonthSql = "SELECT DISTINCT(DATE_FORMAT(时间列,'%m')) as month FROM orders WHERE 时间列 LIKE '%$year%'";
$monthRes = getRes($selMonthSql);
转载于:https://www.cnblogs.com/Bhi9712/p/9814653.html