dhimok Posted September 7, 2007 Share Posted September 7, 2007 Hi. I have the minimum date in database and the maximum date I want to loop from max(date) to min(date) by printing date("M Y") So the loop will look like this Sep 2007 Aug 2007 Jul 2007 ... Jan 2007 I would appreciate some help, thanks Quote Link to comment https://forums.phpfreaks.com/topic/68355-some-date-loop-help/ Share on other sites More sharing options...
$username Posted September 7, 2007 Share Posted September 7, 2007 I dont think I understand what you are looking to do. If you have any code that you can post or something to make this a little more clear that would be great. Brett Quote Link to comment https://forums.phpfreaks.com/topic/68355-some-date-loop-help/#findComment-343717 Share on other sites More sharing options...
dhimok Posted September 7, 2007 Author Share Posted September 7, 2007 I want to loop between this two timestamps $start = 1136070000; // this is Jan 2006 $end = 1188772144; // this is Sep 2007 for() { echo date("M Y"); } If I loop like above I will get endless results which is not good. I want to get all months between those 2 dates Quote Link to comment https://forums.phpfreaks.com/topic/68355-some-date-loop-help/#findComment-343730 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.