ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 24th, 2003, 04:46 PM
Kruzien2002 Kruzien2002 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Jamaica
Posts: 25 Kruzien2002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Forum stuff - I dont know either

Ello dudes,

Thanks again for the help with the sub-routine stuff.

Anyway today someone asked me how does the forum get thread info like
# of replies, # of views, who last posted & the time

Yea we all know is coming from the database.

eg. strSql ="SELECT status, categoryid, forum_id, topic_id, view_count, subject, "
strSql = strSql & "author, sticky, replies, ureplies, lastpost, lastpost_author, "
strSql = strSql & "lastpost_replyid, M_NAME, 1.M_NAME AS lastpost_author_name "

If it was like ths it would mean all the info is added to the database and all replies, views would be stored.

Hey i'm grabbing at straws here, the people who know what

help!!!!!





---------------------------------------------------------------------
Knowledge is power - send some please
--------------------------------------------------------------------

Last edited by Kruzien2002 : January 24th, 2003 at 05:01 PM.

Reply With Quote
  #2  
Old January 27th, 2003, 04:28 PM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
Yeap

Yes... you're correct...
The number of views can be a column at the message table. The number of threads can be checked by using SELECT COUNT(*) AS threadsNumber FROM table WHERE reply_to_message_id LIKE 'id_of_the_original_message'
But I think that it uses multiple queries...
__________________
Regards,
Ramiro Varandas Jr.

Reply With Quote
  #3  
Old January 27th, 2003, 11:32 PM
Kruzien2002 Kruzien2002 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Jamaica
Posts: 25 Kruzien2002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks dude,

I guess my mumble jumble was on the right path.

Anyone have working forum can lend a hand on the design aspect just for guidance purposes.


Much appreciated.


--------------------------------------------------------------
War Sucks!!!! -- Kruzien2002
--------------------------------------------------------------

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Forum stuff - I dont know either


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway