【发布时间】:2010-03-20 23:04:23
【问题描述】:
我正在从我的客户数据库(mysql)中提取过去十天的所有记录
$offset1 =strtotime("-10 天");
$date3=date("Y-m-d",$offset1);
SELECT * FROM customers WHERE date between '$date3' and '$date' AND customer.custid = '$custid' ORDER by date DESC
我想省略周六或周日的日期,并希望将其放在我的查询中而不是 php 中
如果你能帮忙谢谢
【问题讨论】: