Jump to content

Forum - ordering threads


arpowers

Recommended Posts

Hey guys,

 

I'm creating a discussion board (forum) on my site...

 

what is the best way of querying and ordering the posts (to sort by order of with last post per thread)

 

since I'm using two tables, it seem a little counter-intuitive (or at least hard to do elegantly)

 

Andrew

Link to comment
Share on other sites

No answer possible without seeing the design of your database. If you are designing for a class project or other non-mission critical application, it's a good learning tool. If you are designing for a live production server available to the public, I would recommend you save your time and download a 3rd party freeware forum. Based on the question you have just asked, you do not have the skill to adequately program a Forum and secure it. Your site is a hacker's dream waiting to come alive...

 

The best advice is to install a phpBB or whatever and then go into their code and add little modules that do unique things for your site. You will learn PHP very quickly from seeing professional code and duplicating their approach. If you keep the software patched, you run a much less likely chance of being hacked than you would with your own code.

 

PhREEEk

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.