honkmaster Posted May 26, 2015 Share Posted May 26, 2015 (edited) Hi, I'm stuck on below, I have a table called History that records date and time as timestamp, example attached below I'm trying to count the number of entries with todays date, below is the php for todays date and the query, Any one help point me in the write direction. $d=strtotime("today"); $wholedate = date("Y-m-d", $d); $date_array = explode('-', $wholedate); $date = mktime(0,0,0,(int)$date_array,(int)$date_array,(int)$date_array); $query_rsWorkedToday = "SELECT COUNT(*) FROM history WHERE history_date = ‘$date’”; Edited May 26, 2015 by honkmaster Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.