PDA

View Full Version : Query for Latest Posts Only?


BicyclePunk
09-27-2004, 07:38 PM
Hi! On the homepage for our site...not the forums homepage...I'd like to list the five latest posts in the forums. I can't begin to figure out what tables and fields to reference. I was able to post the five latest topics posted in the forums on the homepage (see here (http://www.dirtragmag.com/home.php) ), but I'd also like to get the latest posts on there, too....the same way. I have the idea there and know how to do it, but no clue what to query. Thanks! Any ideas and help would be muchly appreciated. Thanks!

Zachery
09-27-2004, 07:49 PM
You would be best off to use the javascript syndicastion, instead of a query (Which could be rather big).

BicyclePunk
09-27-2004, 08:03 PM
Ok, cool. Thanks. I turned that on. But I don't know where to go from there. I got a reply to another post that told me how to view the js feed. But I go there and don't know what I do? Do I take the code on that page and make it a js script on my HTML (PHP, really) hompage? This is completely new to me. Thanks.