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: MOD Implementation
 Upcoming Event Display outside Forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

rskyles
Starting Member

2 Posts

Posted - 12 September 2004 :  13:39:33  Show Profile  Visit rskyles's Homepage
Does anyone know how to display the upcoming events on another web page outside of the default.asp forum page?

I have it almost set, but once the event is passed, I want it to disappear. My site is http://www.tsarcs.com.

The code to produce that is:


strSQL = "SELECT TOP 5 FORUM_TOPICS.T_ISEVENT, FORUM_TOPICS.TOPIC_ID, FORUM_TOPICS.T_SUBJECT,"_
& " FORUM_CAL_EVENTS.EVENT_DATE, FORUM_CAL_EVENTS.TOPIC_ID FROM FORUM_TOPICS, FORUM_CAL_EVENTS"_
& " WHERE FORUM_CAL_EVENTS.TOPIC_ID = FORUM_TOPICS.TOPIC_ID AND FORUM_TOPICS.T_ISEVENT=1 ORDER BY FORUM_CAL_EVENTS.EVENT_DATE" 


I think I'm running into a problem, because the Snitz database uses a "text" field to store the date, instead of date/time.

I have played with this, but doesn't quite work, because it produces 9/11/2004, instead of 09/11/2004:



date = FormatDateTime(now(),2)
varDay = DatePart("d", date)
varMonth = DatePart("m", date)
varYear = DatePart("yyyy", date)
eDate = varYear & "/" & varMonth & "/" & varDay

WHERE Mid(FORUM_CAL_EVENTS.EVENT_DATE,5,2) & Mid(FORUM_CAL_EVENTS.EVENT_DATE,7,2) & Left(FORUM_CAL_EVENTS.EVENT_DATE,4) > eDate


Thanks for your help. I'm just learning this ASP coding stuff.
Rodney Skyles

Rodney Skyles
SteelSports.net, LLC

rskyles
Starting Member

2 Posts

Posted - 12 September 2004 :  18:54:09  Show Profile  Visit rskyles's Homepage
Nevermind. I figured it out. Did it with an "If, then" statement. Works great.

Rodney Skyles
SteelSports.net, LLC
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.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07