Jump to content


Make a news into a link with id

  • Please log in to reply
1 reply to this topic

#1 Imothep

  • Members
  • PipPip
  • Member
  • 15 posts

Posted 21 July 2006 - 01:47 PM

Hello folks, i know now how to make a news script for posting news and displaying them using mysql, But i dont know how to make that news into a link so that people can see the whole news. example: use the topic as a link then press the link so the news shows up. I have an idea that the ID columms in the database have something to do with this. Does anyone have a link to a tutorial or an example of this?

Thank you very much
Fredrik Christensen
Ip Generation Ltd

#2 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 July 2006 - 02:36 PM

DO something like this when you are getting the news
echo '<a href="news-page.php?id=' . $newsID . '">' . $newsTITLE . '</a>';
// rest of PHP code here.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users