Home arrow MySQL arrow Building a Threaded News System With PHP
MYSQL

Building a Threaded News System With PHP


Ever wanted to build a threaded news system? If so, this article is for you. In it, the Free2Code team show us how to do just that using PHP and MySQL...

Author Info:
By: Free2Code Team
Rating: 5 stars5 stars5 stars5 stars5 stars / 32
December 29, 2002
TABLE OF CONTENTS:
  1. · Building a Threaded News System With PHP
  2. · Creating the Tables
  3. · Adding Comments (comment.php)
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Building a Threaded News System With PHP
(Page 1 of 4 )

In this tutorial I'll explain how you can create a threaded discussion, just like you see in threaded forums across the Internet. Only, in my example, I'll show you how to do it with a "news" page that will have threaded comments.

This tutorial is intended for more experienced PHP users, but even intermediate PHP users should be able to follow because I've placed comments into each code sample.

Planning
There are a couple things that we need to take into account to achieve this:
  • News table: we need to associate each news post with its neighboring comments.
  • Comments: we need to know which comment is a reply to which, so we can structure them correctly.
With that in mind, we need to design our tables...
blog comments powered by Disqus
MYSQL ARTICLES

- MySQL and BLOBs
- Two Lessons in ASP and MySQL
- Lord Of The Strings Part 2
- Lord Of The Strings Part 1
- Importing Data into MySQL with Navicat
- Building a Sustainable Web Site
- Creating An Online Photo Album with PHP and ...
- Creating An Online Photo Album with PHP and ...
- PhpED 3.2 More Features Than You Can Poke ...
- Creating An Online Photo Album with PHP and ...
- Creating An Online Photo Album with PHP and ...
- Security and Sessions in PHP
- Setup Your Personal Reminder System Using PHP
- Create a IP-Country Database Using PERL and ...
- Developing a Dynamic Document Search in PHP ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials