Lets say i have two dates in the format YYYY-mm-dd
I need to make a select statement to query reports done between 2 dates, something like this:
$after = 2003-06-01;
$before = 2003-08-27
select reports from reports where date > $after AND date < $before.
does PHP allow this kind of operation, or should I change the dates to time stamp? whats the best way to do it?
thanks in advance