Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Database Help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Database Help

 Post Reply Post Reply
Author
robert_raw View Drop Down
Newbie
Newbie


Joined: 15 July 2003
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote robert_raw Quote  Post ReplyReply Direct Link To This Post Topic: Database Help
    Posted: 16 July 2003 at 7:52am

After using the amazing Web wiz forums, my company has decided that i need to create our own forum.

I am using Dreamweaver MX, with a seperate table for new topics and replies, but i need to sort these into date order on the forum, so new topics are at top, and when replies are made, that topic is then moved to top.

I cant understand how it is done in WebWizforums.

Any help Would be appreciated

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2003 at 8:00am
The replies table should have a date field that consists of the time the reply was added and the Topics table should have a date field that consists of the time topic was added as well as one that holds the most recent post to that topic.

The most recent post could also be found by running a seperate SQL query or creating a join with the reply table on the most recent posts per topic.
Back to Top
robert_raw View Drop Down
Newbie
Newbie


Joined: 15 July 2003
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote robert_raw Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2003 at 8:06am
Hate to sound dumb, but how would i sort that in to an order in the page?
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2003 at 8:12am
Sort by the date in descending (desc) order.

If your field is called dtePosted then, the statement would end with:
order by dtePosted desc

If you do not have a full grasp of SQL, I would not recommend attempting to write a web forum.

Edited by ljamal
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.