CanMan2004 Posted January 30, 2007 Share Posted January 30, 2007 Hi allHave a question.Im trying to make a page which displays todays month and year, for example01 2007How can I display the above, but put a link either side of this date, it would look like< LINK 01 2007 LINK >When you click < LINK on left hand side, it would show the previous month (and year if required) and when you click the LINK > on the right hand side, it would show the next month (and year if required).Basically by clicking the link, you would be able to show next month, click it again and you would see the month after that.Does that make sense?Can anyone help?ThanksDave Link to comment https://forums.phpfreaks.com/topic/36360-counting-to-12/ Share on other sites More sharing options...
boo_lolly Posted January 30, 2007 Share Posted January 30, 2007 there are many ways to do this. it's hard to say which way is best, we'd need more information on how you wanted to display this, and for what purpose. what will it be used for? Link to comment https://forums.phpfreaks.com/topic/36360-counting-to-12/#findComment-172884 Share on other sites More sharing options...
CanMan2004 Posted January 30, 2007 Author Share Posted January 30, 2007 Basically I want to display<< PREVIOUS 02 2007 NEXT >>and then attach links to the<< PREVIOUSNEXT >>I am using this so that users can browse through a list of data on a particular month, so they can click the << PREVIOUS button to see data added in December, when the user clicks the link, I will use a $_GET[''] to retrieve what month and year have been selected and use that to pull the data from the database.Does that make sense?ThanksDave Link to comment https://forums.phpfreaks.com/topic/36360-counting-to-12/#findComment-172903 Share on other sites More sharing options...
c4onastick Posted January 30, 2007 Share Posted January 30, 2007 There's a number of good tutorials here about that. Check them out, they might help you get going in the right direction.http://www.phpfreaks.com/tutorial_cat/25/Page-Number--Pagination.php Link to comment https://forums.phpfreaks.com/topic/36360-counting-to-12/#findComment-172907 Share on other sites More sharing options...
boo_lolly Posted January 30, 2007 Share Posted January 30, 2007 c4onastick is right. research for pagination scripts. there are plenty on the internet. Link to comment https://forums.phpfreaks.com/topic/36360-counting-to-12/#findComment-172919 Share on other sites More sharing options...
CanMan2004 Posted January 30, 2007 Author Share Posted January 30, 2007 will do, thanks Link to comment https://forums.phpfreaks.com/topic/36360-counting-to-12/#findComment-172921 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.