0
我有這個錯誤MySQL查詢錯誤 「警告:mysqli_fetch_array()預計參數1被mysqli_result,布爾給」
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '00:00:00 AND 2013-08-01 23:59:59 ORDER BY date' at line 1
與此查詢
$start_date = date("Y-m-d ") . "00:00:00";
$end_date = date("Y-m-d ") . "23:59:59";
$result = mysqli_query($con,"SELECT * FROM taxi WHERE del IS NULL AND date BETWEEN " . $start_date . " AND " . $end_date . " ORDER BY date");
,我不知道關於它可能是什麼,因爲我試圖在phpmyadmin查詢,它工作正常。任何人都能理解爲什麼
這是一件非常愚蠢的事!謝謝! – Mark