另一个愚蠢的问题来照亮你的一天。我有这个 MySql 查询,是的,它没有显示任何结果。这里有什么问题?是 AND 还是 ORDERBY?嗯……
SELECT * FROM statisticData WHERE SYear LIKE '$SYr' AND accessDate BETWEEN '$startDate' AND '$endDate' ORDER BY accessDate DESC
哦,这是查询之前的内容:
$SYr = $_POST['SYr'];
$startDate = date("m-d-Y", strtotime($_POST['Date1']));
$endDate = date("m-d-Y", strtotime($_POST['Date2']));