-1
嘗試將一天添加到此,所以當查詢傳遞時它將添加,所以如果用戶選擇06-30-2017,它會說< 06-31-2017,現在它只能說< 06-30-2017,所以它不包括那個日期。如何新增一天
這裏是做
$query .= " AND scc.date_completed >= '" . $inputs['submitted_customer_credit.date_completed'][0] . " 00:00:00' AND scc.date_completed <= '" . $inputs['submitted_customer_credit.date_completed'][1] . " 23:59:59' ";
也許<=,而不是<? – user3486184
你可以像這樣通過PHP添加1天:http://stackoverflow.com/questions/1394791/adding-one-day-to-a-date – cmnardi