|
-
Sep 7th, 2002, 04:24 PM
#1
Thread Starter
Hyperactive Member
Making a forum
I am making a forum. I need the datagrid to show from newest to oldest. And i also need to know how to make it have a certain limit of the number of posts. Once it goes over this limit, it deletes the oldest msg to make room for the new one
-
Sep 9th, 2002, 08:30 AM
#2
You control the order of how the data is listed in the Datagrid with your SQL statement you use to load the data from the db.
Use Order BY fieldname ASC/DESC
-
Sep 11th, 2002, 03:10 PM
#3
Hyperactive Member
In your SQL Select statement use "Select Top 30 From Table order by postID desc" or something similar to that to get only the last 30 posts
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|