Hi look for some help with querying based on todays date. I'm trying to count all the entries in the database based on username, status, date. The date bit is where I' stuck (see screen shot of database)
Based on data in database I should get a count of 3 but get nothing??
The result I get is 0 and should be 3 based on date
Any help would be a great help Cheers Chris
//date bit
$d=strtotime("today");
$wholedate2 = date("Y-m-d", $d);
//query
$query_rsUser = "SELECT COUNT(*) FROM quotes WHERE quotes.quote_user = 'username' AND quotes.quote_complete = '$date2' AND quotes.quote_status = 'Complete'";