提供防水、抓漏、壁癌處理、地坪工程相關案件,線上超過上百筆精選裝潢案件
都能在這找到屬於自己的合適
鐵皮屋店面/新家裝潢後一片混亂?屋內外除塵清掃
粗清細清免煩惱,專人諮詢服務,敬請洽詢

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

[php] mysql 計算開始到結束時間

房東:小蛙
發表時間:2016-12-27
[檢舉]


//////當日開始 $start 和結束 $end 的時間
$start=mktime(0,0,0,date(\"m\"),date(\"d\"),date(\"Y\"));
$end=mktime(23,59,59,date(\'m\'),date(\'d\'),date(\'Y\'));
//////計算當日查詢資料的筆數
$result1 = mysql_query(\"select Count(*) as total from $inforchecking where username=\'$username\' and date > $start and date < $end\") or die(mysql_error());
$row=mysql_fetch_Array($result1);
$total=$row[total];



  • 贊助網站       

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



  •  共 0 人回應

    姓名:
    佈告內容: