5 Latest Posts...

Results 1 to 2 of 2

Thread: 5 Latest Posts...

  1. #1
    Join Date
    Dec 1969

    Default 5 Latest Posts...

    I am creating a messageboard system and I need to have a way that the board.asp shows the 5 most lastest Records in the Database, not all the post, but the most current, can someone help me with this, Thanks in advance!

  2. #2
    Join Date
    Dec 1969

    Default RE: 5 Latest Posts...

    As long as you have a date field try this:<BR><BR>SELECT TOP 5 * FROM Threads ORDER BY ThreadDate DESC<BR><BR>Just Replace Threads with the apropriate table and ThreadDate with the corresponding field. If this doesn&#039;t work. I think it is the MaxRecords property of the Recordset object you can use to limit records returned. Then you can just take out the &#039;TOP 5&#039; out of the SQL statemant above.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts