Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 How to show 10 Last update on the first page?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

St.J
Starting Member

3 Posts

Posted - 18 September 2002 :  22:49:15  Show Profile
I want to have 10 last post on my first page, can someone tell me what should I do ?

bax
Junior Member

141 Posts

Posted - 18 September 2002 :  23:11:31  Show Profile
There should be a script for this around somewhere - check out the mods.

If not, you could really easily write this yourself. Here's some SQL to get 10 most recent PUBLIC posts (you'll need to adapt this to accomodate Snitz table names).

select top 10 ft.cat_id, ft.forum_id, ft.topic_id, ft.t_subject, ft.t_author, ft.t_date,
fm.m_name, fm.m_FirstName
from forum_topics ft
inner join forum_forum ff
on ft.forum_id = ff.forum_id
inner join forum_members fm
on ft.t_author = fm.member_id
where ff.f_privateForums = 0
order by ft.t_date desc
--order by the date they were posted, in descending order....
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.65 seconds. Powered By: Snitz Forums 2000 Version 3.4.07