Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Tables and rows in wwforum.mdb
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tables and rows in wwforum.mdb

 Post Reply Post Reply
Author
jimdmurphy View Drop Down
Newbie
Newbie


Joined: 22 November 2003
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimdmurphy Quote  Post ReplyReply Direct Link To This Post Topic: Tables and rows in wwforum.mdb
    Posted: 12 December 2003 at 1:15am

I am working on adding the Topic.Subject to default.asp so that the last subject is displayed with the Last Author and Date/Time.  I am wondering where to go to find information on the field names for the Tables in wwforum.mdb.

I am specifically interested in Author, Thread and Topic.  (I don't have a current version of Access on my PC)



Edited by jimdmurphy
Back to Top
jimdmurphy View Drop Down
Newbie
Newbie


Joined: 22 November 2003
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimdmurphy Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2003 at 2:06am
any help on this would be appreciated
Back to Top
Tegwin View Drop Down
Senior Member
Senior Member


Joined: 03 September 2003
Location: United Kingdom
Status: Offline
Points: 430
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tegwin Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2003 at 2:55am

I would say have a look in Access to see what the field names are that you are looking for. And then do a search (windows) for all files containing those filed names and work from there..

 

 

If you dont want my peaches, dont shake my tree
Back to Top
gavinc View Drop Down
Newbie
Newbie


Joined: 20 November 2003
Location: Wales
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote gavinc Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2003 at 4:36am

I changed default.asp on my site to do what you're after and a bit more. www.crsc.co.uk/forum/default.asp

First thing I did was to change the select statement to make sure that the subject was returned from the database:

strSQL = "select tblThread.Thread_ID, tblThread.message_date, tblThread.topic_id, tblTopic.subject, tblAuthor.Author_ID, tblAuthor.Username"
strSQL = strSQL & " from tblThread, tblTopic, tblAuthor"
strSQL = strSQL & " where tblTopic.Forum_ID = " & intForumID
strSQL = strSQL & " AND tblThread.Topic_ID = tblTopic.Topic_ID" strSQL = strSQL & " AND tblThread.Author_ID = tblAuthor.Author_ID" strSQL = strSQL & " order by message_date desc"

Then I set up a new variable to store the subject title in:

strLastEntrySubject = rsCommon("Subject")

All that was left then was to display the subject title.

I was going to copy in the relevant code at this point but the formatting went all screwy since I was pasting in HTML tags. Drop me a PM with your email address and I will send my default.asp over.

Hope this helps.



Edited by gavinc
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.