I want to select * from my db, but I want to select from the current date and back.
$date = date('Y-m-d');
$sql = "SELECT * FROM TABLE1 WHERE column1 = '$date'";
I have a mixture of dates in column1. Some are in the past, others are in the future. But I'm only needing to query any record from the current day and in the past.
Not sure how that is accomplished in the variable.