台灣最大裝潢接案平台
輕鬆接案網
抓漏新屋裝潢.舊屋裝修.合格裝潢
裝修證照.是專業施工品質的保障

首頁  •  j2h 論壇 • 程式設計討論     • 

[php] PHP日期

房東:小黃
發表時間:2010-10-22


select* 'form date where
uid = colname and d-time beteeen '2009-09-01' and '2009-11-04'


select * from xxx where
curdate() between SUBDATE($d-time,INTERVAL 3 DAY) and $d-time


前一星期
select * from xxx where
curdate() between SUBDATE($d-time,INTERVAL 1 WEEK) and $d-time
前一個月
select * from xxx where
curdate() between SUBDATE($d-time,INTERVAL 1 MONTH) and $d-time
前半年
select * from xxx where
curdate() between SUBDATE($d-time,INTERVAL 6 MONTH) and $d-time

2010-09-25 22:24:46 補充



  • 贊助網站       

    廣利不動產-新板特區指名度最高、值得您信賴的好房仲
    您的托付,廣利用心為您服務
    廣利不動產-板橋在地生根最實在--新板特區指名度最高、值得您信賴的好房仲
    完整房訊,房屋、店面熱門精選物件,廣利不動產 優質仲介,房屋租賃、買賣資訊透明,交易真安心!



  •  共 0 人回應

    姓名:
    佈告內容:
    其他選項: