I have a php script that posts news articles and assigns them this link: /news.php?action=fullnews&id=9 id increases +1 with every posted article. Does anyone know a way how I can make a direct link to the latest posted article?
If this is MySQL based just do something along the lines of this. $query = mysql_query("SELECT * FROM `articles` ORDER BY `id` DESC LIMIT 0, 1"); $article_t = mysql_fetch_array($query); $last_article = $article['id']; PHP: Then your link would be something along the lines of. $link = "<a href='http://yoursitecom/news.php?action=fullnews&id=".$article['id']."'>LINK TEXT</a>"; PHP: Hope this helps.