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[1],(int)$date_array[2],(int)$date_array[0]);
$query_rsWorkedToday = "SELECT COUNT(*) FROM history WHERE history_date = ‘$date’”;