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)
 News section output to main website driven via SQL
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

goorootech
New Member

Australia
53 Posts

Posted - 29 January 2005 :  22:35:53  Show Profile  Visit goorootech's Homepage
version 3.4.04
database type: SQL Server running on our Windows 2003 Server
strConnString = "driver={SQL Server};server=xxxxxxx;uid=xxxxxx;pwd=xxxxxxx;database=xxxxxdb" '## MS SQL Server 6.x/7.x/2000 (ODBC connection)

I want to be able to output the top 5-10 topics in a forum which contains news entries to my main front website as small 'list-box' style of recent news... basically SQL code will target the SQL snitz database and extract the topic titles and create links etc

I know it can be done but cannot find anything like it (and I also do not know the snitz/SQL coding knowledge to do it )

The forum which contains the news items is set to be publicly accessible and the entries do not have any replies on them. The entries are entered by myself or our moderator and is locked so noone can change it.

Can anyone help? It'd be most appreciative!

regards,
Jason Binder

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 30 January 2005 :  00:07:01  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Here is the code I use to show my news on my frontpage, you could modify it to do what you need though.

_news.asp

I just use a include virtual on my frontpage.

-Stim
Go to Top of Page

goorootech
New Member

Australia
53 Posts

Posted - 30 January 2005 :  05:44:02  Show Profile  Visit goorootech's Homepage
Thanks Da_Stimulator! Workn nicely, chopped n changed the code abit as I dont want the body of the text etc but I know what needs to be done now...

Lookn up virtual includes as I dont know about them apart that they dump in code to the main code etc..

All good!

regards,
Jason Binder
Go to Top of Page

goorootech
New Member

Australia
53 Posts

Posted - 10 March 2005 :  16:50:51  Show Profile  Visit goorootech's Homepage
Well.. I have the news.asp file working sweet (Its nice, thx Da_Simulator!) but, being a newbie at including files I'm stuck. I've spent the last month and more researching this on the net but can't for the life of me find a direct answer to what I should do next. The #include statement does not work and generates nothing on the page I'm wanting it on. I figure it's because my main website page is index.htm and HTML pages don't process SSI commands (I sure that's right). No problem there, but... how can I process an included ASP file to my main page? Or.. do I have to change the extension of my main website page from index.htm to something different and modify the windows 2003 webserver configuration?

Info;

1. main webpage ---> index.htm
2. included asp file ---> news.asp
3. I'm using a <--#include file = "news.asp" --> in a table so that the news entries go to one of my dropboxes on my website.


I'm lost but sooo close. Any guidance would be really really appreciated! :)

regards,
Jason Binder
Go to Top of Page

goorootech
New Member

Australia
53 Posts

Posted - 14 March 2005 :  02:31:27  Show Profile  Visit goorootech's Homepage
Topic answered via the xpost in http://forum.snitz.com/forum/topic.asp?TOPIC_ID=57470

Thanks all

regards,
Jason Binder
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 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07