dagger2002
Programmer
Ok all i have stumped myself with this 1. and am not understanding the functions on php.net.
I am trying to do something i thought was simple. I want to be able to get a date range, my fiscal year, while listing multiple years.
exp
07/01/2006 - 06/31/2007
07/01/2005 - 06/31/2006
07/01/2004 - 06/31/2005
And i need to keep them grouped in there fiscal year.
Here is what I thought the answer would be:
But it isn't working.
Thanks
I am trying to do something i thought was simple. I want to be able to get a date range, my fiscal year, while listing multiple years.
exp
07/01/2006 - 06/31/2007
07/01/2005 - 06/31/2006
07/01/2004 - 06/31/2005
And i need to keep them grouped in there fiscal year.
Here is what I thought the answer would be:
Code:
$year = date("Y");
"SELECT * FROM `files` WHERE `file_type` = '3'AND file_date BETWEEN " . $year . "0631 AND " . $year - $i . "0701 ORDER BY file_date ASC;"
But it isn't working.
Thanks