This is a discussion on "[SOLVED] pagementation to jump menu" within the PHP Forum section. This forum, and the thread "[SOLVED] pagementation to jump menu are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] pagementation to jump menu
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
[SOLVED] pagementation to jump menu
i am building my developers site, and i have decided to use the blog i have built, but i want to adjust it a little, this is my pagementation page
1 2 3 4 5 etc what i would like to do is to sort it by date ( month and year ), then input the month and year into a jump menu like so jan 08 feb 08 mar 08 apr 08 may 08 june 08 etc, then next year it will change to jan 09 feb 09 mar 09 etc, i still want to display the pagementation at the bottom ( as it is ) but a jump menu that will update itself whenever i post a new blog for that month, so if i miss a month, that month would not be included in the jump menu list its just so i can always have links to each month posted ( easy access ) does anyone know enough about this to help please, thanks
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
|
|
||||
|
Re: pagementation to jump menu
ok, seems like no-one is able to answer this for me, but i have managed to do this so far
first: Notice: Undefined index: form in C:\Program Files\EasyPHP 2.0b1\www\blog\index.php on line 204 second: it is displaying the date like so - 1201036656 ( needs also to be adjusted to show it by month and year - later ) can you help ?, attached is the image cheers
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Feb 15th, 2008 at 12:20. |
|
||||
|
Re: pagementation to jump menu
What is line 204?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: pagementation to jump menu
Ok, looks like the problem you are having is sorting by and formatting date stamps. I'd recommend using this link php Dates to learn how to format the long number into a more readable date. Wherever you store the content, that is where you need to store the date as well. I'm assuming that you are using a MySQL database and I'd recommend adding a date column. You can then Sort by Date to get it to align them in that order. The drop down would be a simple select button with the options generated in a while loop (while there is a date, print it) and that should solve those issues.
If you need more info, or need some code let me know and I'll see what I can do.
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
|
||||
|
Re: pagementation to jump menu
urrm, i am still pretty new to php, i can only do the basics, but give me five minutes and i will give you a link to the blog file so you can see everything for yourself ( link to full file blog download )
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Jan 22nd, 2008 at 20:55. Reason: added file download |
|
||||
|
Re: pagementation to jump menu
Maybe this?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: pagementation to jump menu
wow, thanks, error is gone -
just got to work out the date issue, oh and the submit button is not working, - its not taking me to the blog page
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Jan 22nd, 2008 at 21:02. |
|
||||
|
Re: pagementation to jump menu
Check that you are telling to go to the right place in the form tag.
The date issue i think was explained above?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: pagementation to jump menu
Wow, I went to class and came back and found Alex fixed the bug, Yay Alex!
As far as the date goes the link above will take care of that. If you have any questions implementing it please post back. Also, I can't seem to download the blog file even in a download manager.
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
|
||||
|
Re: pagementation to jump menu
alexgeek - everything i tried either created errors, or had no effect
JustinStudios - i have removed tnymce from the file, and have managed to add it as an attachment ( it was too big originally )
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: pagementation to jump menu
i have tried everything to convert this date from unix, please help - all i would require is the month
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: pagementation to jump menu
Is it a mysql timestamp or a php one?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: pagementation to jump menu
date table
date VARCHAR(25) NOT NULL, how i recovered it last time print strftime('%d %B %Y', $row->date);
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Jan 23rd, 2008 at 19:34. |
|
||||
|
Re: pagementation to jump menu
Try:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: pagementation to jump menu
nope, sorry not working
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: pagementation to jump menu
What happens?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: pagementation to jump menu
where did you want me to put it ? - i have tried all over, then i could tell you
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Jan 24th, 2008 at 06:07. |
|
||||
|
Re: pagementation to jump menu
Replace this for my code:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: pagementation to jump menu
that code is what makes the date on each blog, it still is not changing in the drop down, still in unix it was from here
|