Refresh page with new content on clicking a link
Posted: Mon Aug 07, 2006 12:45 pm
Hi,
I'm new to PHP (and just really starting out) and forgive me if I posted this in the wrong forum and the question that follows.
I have a website which is database (MySQL) driven. I have it set up so that it would pull the newest article from the database table and display it based on the timestamp on the front page.
The front page will also select ALL the articles from the table above and display it on the front page by "article_title" only, so almost like an "Archived Articles" section. But how would I make these linkable such that when a user clicks a link, it will automatically refresh the front page and displace the newest article with the requested article?
Is this where I have to pass arguments in the URL based on the "article_id" ?
Hope you can help.
I'm new to PHP (and just really starting out) and forgive me if I posted this in the wrong forum and the question that follows.
I have a website which is database (MySQL) driven. I have it set up so that it would pull the newest article from the database table and display it based on the timestamp on the front page.
Code: Select all
article_id
article_title
article_text
article_timestampIs this where I have to pass arguments in the URL based on the "article_id" ?
Hope you can help.