Skip to main content

Simple Forum/Discussion System using PHP/MySQL with Source Code


Project: Simple Forum/Discussion System using PHP/MySQL with Source Code


The Simple Forum/Discussion System is a simple PHP/MySQL project that can help a certain school or company to discuss a certain topic that may relate to others within the school or company circle nowadays due to the pandemic. We all know that nowadays there's an inconvenience working and studying because some of the processes or work are forced to be done online,home-based, or whatever word to describe long-distance transactions or processes, which the forum or discussion system may help by organizing a certain topic to be discussed. Yes, we have FB Messenger, Viber, Skype, and other online application that help us to communicate online, conversations can be random and others can't catch up easily while this system main purpose is not only to communicate with others but also to provide a discussion page where may also help another employee for a company or student and teacher for schools for example when a user 1 posted a topic or discussion on the system obviously some other users may comment to a certain topic, since the topic may be a question because the user 1 is having a hard time to solve or any instances may occur which he/she needs help for a co-worker/s that might be experienced already and solve the instance, this worker can simply drop a comment on this topic that may help his/her coworker/fellow student. You might wonder that the scenario can also be done in some application such as chat applications, well, the main purpose of this system is that the system stores all posted topic with the comments and replies, which means that in the future, some users may encounter the scenario, problems or questions that he/she needed an answer, the user can find or retrieve any related discussion that was already done in the past which means he/she might find the answers to his/her question without posting a new discussion and wait to other users to drop their ideas to your posted questions. The system was inspired by the StackOverflow website which is commonly used by developers, programmers, or any IT related works.
 The Simple Forum/Discussion System source code has only a small scope project but features the main purpose for this article or system idea.


  • Login Page
    • The page where the system users submit their system credentials to access the data of the system and join a discussion.
  • Home Page
    • The page where the system users will be redirected by default after logging in. This page displays the summary of the system user, topics, and tags/categories
  • Tags/Categories Page
    • The page where the system users will manage the list of the topic tags/categories.
  • Discussion Page
    • The page where all the topics, questions, or discussions are listed and managed.
  • Discussion View Page/Room
    • The page where displays all the content of a certain discussion when selected. This page where displays the users dropped comments and also be managed.
  • Search Bar
    • The input where can system users enter a keyword that is related to a discussion.
  • User Page
    • The page where only the admin users have permission to access and manage the user list.

How to Run

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs PHP script.
  3. Open the web-server database and create a new database name it forum_db.
  4. Import the SQL file located in the database folder of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. E.g [http://localhost/simple-forum-discussion-system

Admin Default Access

Username: admin

Password: admin123

I hope this Simple Forum/Discussion System project will help you with what you are looking for. Feel free to download and enhance or modify the source code.

Explore more on this website for more source codes and tutorials.


Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment