Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: need help,

  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need help,

    Hello!!!!!
    I have a forum(toastforum). Can any tell me how i can have last 10 or llast 5 post on mqain page on my website.

  • #2
    Registered User
    Join Date
    Jun 2002
    Location
    Arizona
    Posts
    175
    Thanks
    0
    Thanked 0 Times in 0 Posts
    your question is pretty unclear and a little bit of code of anything would help.

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have a Message Board type application that is used in a corporate Intranet environment where I did the same thing.

    Note the example query...
    Code:
    SELECT Title, Author, [Date] FROM msgbd
    Now check out this query...
    Code:
    SELECT TOP 5 Title, Author, Date FROM msgbd ORDER BY [Date] DESC
    The TOP 5 clause specifies that only the first five tuples of the result set will be returned. Hope this example helps.

    rynx


  •  

    Posting Permissions

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