Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-18-2002, 12:28 PM   PM User | #1
tipsi
New to the CF scene

 
Join Date: Aug 2002
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
tipsi is an unknown quantity at this point
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.
tipsi is offline   Reply With Quote
Old 08-18-2002, 06:10 PM   PM User | #2
Phip
Registered User

 
Join Date: Jun 2002
Location: Arizona
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Phip is an unknown quantity at this point
your question is pretty unclear and a little bit of code of anything would help.
Phip is offline   Reply With Quote
Old 08-20-2002, 08:29 PM   PM User | #3
rynox
New Coder

 
Join Date: Aug 2002
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
rynox is an unknown quantity at this point
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.

rynðx
rynox is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:11 AM.


Advertisement
Log in to turn off these ads.