Page 1 of 1

php hyperlink problem/question

Posted: Tue Sep 23, 2008 11:59 am
by clmowers
ok, im going nuts trying to figure this out.what i want to do is have a news page on my web site. I have a mysql server running and a table called news and the table has auto_number, date, headline, news.
What i would like to do is have 1 page display the date and the headline and called news.php. When the user click on the headline, query the database and pull the correct info onto the new_page.php page. If possible, i would like to have the whole thing based on a database. Easier to maintain then seperate pages and creating new link every time. Can anyone help me please

Re: php hyperlink problem/question

Posted: Mon Oct 13, 2008 9:56 pm
by efortis
Create the news.php which queries the table containing the news.
The query may look something like SELECT * FROM tblNews.
Then create in HTML a table with a heading.
The second row should be a repeated region in which all the news
are different rows.

Then use the auto_number as an URL parameter, by
specifying a link to new_page.php?id=## in each title instance of the table.