Jump to content

Counting to 12


CanMan2004

Recommended Posts

Hi all

Have a question.

Im trying to make a page which displays todays month and year, for example

01 2007

How 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?

Thanks

Dave
Link to comment
https://forums.phpfreaks.com/topic/36360-counting-to-12/
Share on other sites

Basically I want to display

<< PREVIOUS    02 2007      NEXT >>

and then attach links to the

<< PREVIOUS

NEXT >>

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?

Thanks

Dave
Link to comment
https://forums.phpfreaks.com/topic/36360-counting-to-12/#findComment-172903
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.