hey,
so i have this site i'm working on. using php. it's kind of like a 'blog'. updates go into the database, the main page will automatically display the 5 newest entries. my question is this. how can i set up an 'archives' type page, where people can access all of the older updates?
i want the title of all of the updates to be displayed, the user clicks one, that update is shown in my template.
i know this can be done, and i know it can't be that hard... can anyone give me a hand?
thank you in advance.
$last_news = mysql_query(''select * from table order by id desc limit 5'');
//your code here
$arshive = mysql_query(''select * from table order by id desc limit 5,9999'');
// your code for arshive
thanks for the response.
i actually have that part working...
what i want to do is set it up so that people can click on the links and the body of the title they pick will be shown on my template.
i guess what i need to know is how to pass variables (the id of the 'entry') from one page to another. then i can simply do a select * from updates where id=($passedVariableForStoryIWant)
| Forum legend: | |
| Locked thread | |
| Moderator | |
![]() |
CNET staff |
![]() |
Samsung staff |
| Norton Authorized Support team | |
| AVG staff | |
| Windows Outreach team | |
![]() |
Dell staff |
| Intel staff | |