I have a select query that gets put together by use checkbox selection. That works okay, however I am now trying to add between two dates in the query.
//$from_date = "2006-01-01";
//$to_date = "2006-09-24";
//$where=$where AND date_added BETWEEN '".$from_date."' AND ".$to_date."'";
I cannot seem to get the correct syntax for the above to work. Tried many permutaions but cannot get there. Anyone know how to do it. Many thanks
//$from_date = "2006-01-01";
//$to_date = "2006-09-24";
//$where=$where AND date_added BETWEEN '".$from_date."' AND ".$to_date."'";
I cannot seem to get the correct syntax for the above to work. Tried many permutaions but cannot get there. Anyone know how to do it. Many thanks