0% found this document useful (0 votes)
7 views15 pages

PHP Report

The document outlines a project report for a Discussion Board developed by students of Y.B. Patil Polytechnic, Akurdi, as part of their Diploma in Computer Engineering program. The project aims to facilitate online discussions, enhance collaboration, and improve user engagement through a web-based platform utilizing PHP, MySQL, HTML, CSS, and JavaScript. It includes details on project objectives, benefits, required resources, an action plan, and acknowledges contributions from faculty and peers.

Uploaded by

dikshakamble2080
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views15 pages

PHP Report

The document outlines a project report for a Discussion Board developed by students of Y.B. Patil Polytechnic, Akurdi, as part of their Diploma in Computer Engineering program. The project aims to facilitate online discussions, enhance collaboration, and improve user engagement through a web-based platform utilizing PHP, MySQL, HTML, CSS, and JavaScript. It includes details on project objectives, benefits, required resources, an action plan, and acknowledges contributions from faculty and peers.

Uploaded by

dikshakamble2080
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Name of institute: Y. B.

Patil Polytechnic, Akurdi, Pune

Name of Program: Diploma in Computer Engineering

Name of Course: PHP


Subject Code: 22619
Project Title: Discussion Board Academic Year: 2024-25

Name of the students:

Sr.No Roll No Student Name Enrollment No

1 Y-3309 Riya Kangellu 2201340075

2 Y-3330 Diksha Kamble 2201340103

3 Y-3337 Lavanya Marathe


2201340112

Class: TYCO(A) Semester:6 Scheme: I


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

CERTIFICATE

This is to certify that the Project report entitled ‘Discussion Board ’ was successfully
completed by students of Sixth semester Diploma in Computer Engineering under the course
PHP (22619).

Sr.No Roll No Student Name Enrollment No

1 Y-3309 Riya Kangellu 2201340075

2 Y-3330 Diksha Kamble 2201340103

3 Y-3337 Lavanya Marathe


2201340112

in partial fulfillment of the requirements for the award of Diploma in Computer


Engineering of institute Y.B.Patil Polytechnic, Akurdi work carried out during the
academic year 2024-2025 as per curriculum.

Mrs.A.V.Bansod Mrs.P.S. Ahuja Dr.A.S.Kondekar


(Project Guide) (H.O.D) (Principal)
MICROPROJECT PROPOSAL

Title of the project: Discussion Board

1.Aims/Benefits of the Micro project:


1. Facilitate Communication – Provide a platform where users can
discuss topics, ask questions, and share knowledge.
2. Enhance Collaboration – Enable group discussions, teamwork, and
idea-sharing among users.
3. User Engagement – Encourage active participation through posting,
commenting, and interacting with others.
4. Easy Accessibility – Make discussions available anytime and
anywhere through a web-based interface.
5. Secure and Organized – Implement user authentication and
categorization for structured discussions.
Benefits:
1. Improves Learning & Knowledge Sharing .
2. Boosts Community Interaction
3. Simplicity & Efficiency
4. Scalability
5. Cost-Effective
2.Course Outcome addressed:

a. Web Development Skills


b. Database Management
c. User Authentication & Security
d. Client-Server Communication
e. Problem-Solving & Debugging
f. Project Implementation & Deployment

3.Resources required

Sr.No Name of Specification Quantity Remark


Resource
1. Computer Accordingly 1 None
Peripheral
2. Internet Accordingly - None
4.Action Plan

Sr.No Details of Activities Planned Planned Finish Name of responsible group


Start Date Date member

1 Collect information 16/3/2025 16/3/2025 Diksha Kamble


about the topic. Riya Kangellu
Lavanya Marathe

2 Analyze the 16/3/2025 16/3/2025 Diksha Kamble


outcome and eradicate Riya Kangellu
the errors. Lavanya Marathe
Managing the
documentation.

3. Successfully Completed 17/3/2025 17/3/2025 Diksha Kamble


Riya Kangellu
Lavanya Marathe

5.Name of responsible team members:

Y-3309 Riya Kangellu


Y-3330 Diksha Kamble
Y-3337 Lavanya Marathe
ACKNOWLEDGMENT

In acknowledgment of our college group project report, we extend our heartfelt gratitude to all
those who contributed to the successful completion of this endeavour. Firstly, we express our
sincere appreciation to our project supervisor, for their guidance, support, and invaluable insights
throughout the duration of the project. Their mentorship has been instrumental in shaping our
understanding and refining the project's scope. We would like to thank our fellow group members
for their collaborative spirit, dedication, and hard work. Each team member brought a unique set
of skills and perspectives, contributing to the our gratitude extends to the college faculty and staff
who provided resources, facilities, and a conducive learning environment. Their commitment to
fostering academic excellence has been pivotal in our academic journey. Finally, we
acknowledge the support of our friends and family for their encouragement and understanding
during the demanding phases of this project.
INTRODUCTION

A Discussion Board is a web-based platform that enables users to engage in online discussions
by posting topics, sharing opinions, and interacting with others through comments. This project is
developed using PHP, MySQL, HTML, CSS, and JavaScript, making it a dynamic and
interactive application.
The primary objective of this project is to facilitate seamless communication and collaboration
among users in an organized manner. Users can register, log in, create discussion threads, and
respond to existing posts. The system ensures structured data storage and retrieval using MySQL,
while PHP handles server-side processing. Additionally, authentication mechanisms are
implemented to secure user access and maintain a safe discussion environment.
This project serves as a valuable learning experience in full-stack web development, database
management, and user authentication while promoting efficient online interactions. It can be
further enhanced with features like moderation controls, file attachments, and notifications to
improve usability and engagement.

OBJECTIVE:

1. Facilitate Online Discussions – Provide a platform for users to create, share, and engage
in discussions on various topics.
2. User Authentication & Security – Implement login and registration features to ensure
secure access and prevent unauthorized participation.
3. Database Management – Store and manage user data, discussion posts, and comments
efficiently using MySQL.
4. Enhance User Interaction – Enable users to post, reply, and interact with discussions in
an organized manner.
5. Improve Web Development Skills – Apply PHP, HTML, CSS, and JavaScript to build a
functional and dynamic web application.
6. Ensure Accessibility & Usability – Design a user-friendly interface that allows easy
navigation and participation.
ADVANTAGES:

1. Encourages Communication – Provides a platform for users to engage in discussions


and share knowledge.
2. User-Friendly Interface – Easy-to-use design for seamless navigation and participation.
3. Secure & Controlled Access – Authentication system ensures only registered users can
post and interact.
4. Efficient Data Management – MySQL database stores discussions, comments, and user
details securely.
5. Scalability – Can be expanded with features like categories, file uploads, and
notifications.
6. Enhances Learning & Collaboration – Useful for educational institutions,
organizations, and communities.
7. Cost-Effective – Built using open-source technologies, reducing development and
maintenance costs.

DISADVANTAGES:

1. Spam & Moderation Issues – Without proper moderation, discussions may become
cluttered with spam or inappropriate content.
2. Database Overload – If not optimized, a high number of users and posts may slow down
performance.
3. Limited Real-Time Interaction – Unlike chat applications, responses are not instant.
4. Security Concerns – If not properly secured, the system may be vulnerable to hacking or
data breaches.
5. Dependency on Internet Connectivity – Requires an internet connection for access,
limiting offline usability.
6. Requires Maintenance – Needs regular updates and security patches to ensure smooth
operation.
CODE

<?php

session_start();

include("../common/db.php");

if (isset($_POST['signup'])) {

$username = $_POST['username'];

$email = $_POST['email'];

$password = $_POST['password'];

$address = $_POST['address'];

$user = $conn->prepare("Insert into `users`

(`id`,`username`,`email`,`password`,`address`)
values(NULL,'$username','$email','$password','$address')");

$result = $user->execute();

$user->insert_id;

if ($result) {

$_SESSION["user"] = ["username" => $username, "email" => $email, "user_id" => $user-
>insert_id];

header("location: /MY-Projects-PHP-MYSQL/Discussion-Board/");

} else {

echo "New user not registered";

} else if (isset($_POST['login'])) {

$email = $_POST['email'];
$password = $_POST['password'];

$username="";

$user_id = 0;

$query = "SELECT * FROM users WHERE email='$email' AND password='$password'";

$result = $conn->query($query);

if ($result->num_rows == 1) {

foreach ($result as $row) {

$username = $row['username'];

$user_id = $row['id'];

$_SESSION["user"] = ["username"=>$username,"email"=>$email, "user_id" => $user_id];

header("location: /MY-Projects-PHP-MYSQL/Discussion-Board/");

} else {

echo "New user not registered";

} else if (isset($_GET['logout'])){

session_unset();

header("location: /MY-Projects-PHP-MYSQL/Discussion-Board/");

} else if(isset($_POST['ask'])){

$title = $_POST['title'];

$description = $_POST['description'];

$category_id = $_POST['category'];
$user_id = $_SESSION['user']['user_id'];

$question = $conn->prepare("Insert into `questions`

(`id`,`title`,`description`,`category_id`,`user_id`)
values(NULL,'$title','$description','$category_id','$user_id')");

$result = $question->execute();

$question->insert_id;

if ($result) {

header("location: /MY-Projects-PHP-MYSQL/Discussion-Board/");

} else {

echo "Question Not Submitted";

}else if(isset($_POST["answer"])){

$answer = $_POST['answer'];

$question_id = $_POST['question_id'];

$user_id = $_SESSION['user']['user_id'];

$query = $conn->prepare("Insert into `answers`

(`id`,`answer`,`question_id`,`user_id`) values(NULL,'$answer','$question_id','$user_id')");

$result = $query->execute();

if ($result) {
header("location: /MY-Projects-PHP-MYSQL/Discussion-Board?q-id=$question_id");

} else {

echo "Answer Not Submitted";

}else if(isset($_GET["delete"])){

echo $qid= $_GET["delete"];

$query= $conn->prepare("delete from questions where id =$qid");

$result = $query->execute();

if($result){

header("location: /MY-Projects-PHP-MYSQL/Discussion-Board");

}else{

echo "Question Not Deleted";

?>
Db.php

<?php

$host="localhost";

$username="root";

$password=null;

$database="discussionboard";

$conn=new mysqli($host,$username,$password,$database);

if ($conn->connect_error){

die("not connected with DB". $conn->connect_error);

?>
OUTPUT
CONCLUSION

The Discussion Board project in PHP successfully provides an interactive platform for users
to share ideas, engage in discussions, and exchange information efficiently. By utilizing PHP
for backend logic, MySQL for data storage, and HTML, CSS, and JavaScript for the
frontend, the project ensures a dynamic and user-friendly experience.

Key features such as user authentication, post creation, commenting, and real-time updates
contribute to an engaging environment for discussions. Security measures like input
validation and SQL injection prevention have also been implemented to enhance reliability.

Overall, this project demonstrates the effective use of PHP in web development and can be
further enhanced with features like real-time notifications, multimedia support, and an
improved UI/UX. Future improvements could also include integrating modern frameworks
for better scalability and performance.

You might also like