arpowers Posted December 6, 2007 Share Posted December 6, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/80421-forum-ordering-threads/ Share on other sites More sharing options...
PHP_PhREEEk Posted December 6, 2007 Share Posted December 6, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/80421-forum-ordering-threads/#findComment-407745 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.