Mad
Mad
MICRO PROJECT
Academic year: 2024-25
TITLE OF PROJECT
Subject :- WBP
Subject Code: 22619
Course and Code: CO-6I
Subject Teacher: Prof. A.H.Gangwal
MAHARASHTRA STATEBOARD OF TECHNICAL
EDUCATION
Certificate
2216070033
Place: Nandgaon Enrollment No. 2216070034
2216070035
2216070057
535197
Date: / /2025 Exam. Seat No 535198
535199
535215
Roll Seat No
Sr.No Name of group members Enrollment No
No
With deep sense of gratitude we would like to thanks all the people who have lit
ourpath with their guidance. We are very grateful to these intellectuals who did their
best to help during our project work. It is our proud privilege to express deep senseof
gratitude to Prof.
V. S. Zadkhande Principal of Gurukul Polytechnic, Nandgaon, Nashik for his
comments and kind permission to complete this Micro Project. We remain indebted to
Prof. S. R. Jain, HOD of Computer Engineering Department for her suggestion and
valuable guidance. The special gratitude goes to our internal guide Prof.M.R.Bagul
Subject teacher (MAD), for their expensive, excellent and precious guidance for
completion of work.
Name of Students:
1 Abstract 1
2 Introduction 2
Coding 3
4
Output 5
5
6 Conclusion 6
7 Referances 7
The Hostel Management System is a web-based micro project developed using PHP and
MySQL that aims to simplify and automate the process of managing hostel student data. This
system allows students to register, log in, and maintain their personal records securely.
The main goal of this project is to reduce manual work and improve the efficiency of hostel record
management. The system includes modules such as student registration, login, and a simple
dashboard. It provides a user-friendly interface for students and ensures secure data storage using
password encryption.
The backend database is managed using MySQL through XAMPP, ensuring smooth connectivity
and storage of data. The project is lightweight and suitable as a micro project for diploma or
undergraduate students in the computer science or IT domain.
This system helps demonstrate the practical application of web technologies and database
connectivity in real-world scenarios
1
INTRODUCTION
The Hostel Management System is a simple web-based application designed to manage hostel-
related information effectively. In many colleges and institutions, hostel data like student details,
room allotment, and fee status are still maintained manually, which leads to errors, delays, and
mismanagement.
To overcome these issues, this system provides a digital solution where students can register
themselves online, and the admin can manage all student records from a centralized platform. The
project is developed using PHP as the server-side scripting language and MySQL for database
storage, and it runs on the XAMPP server.
This system reduces paperwork, saves time, and increases the accuracy and accessibility of hostel
data. It also serves as a learning project to understand the basics of web development, form
handling, and database integration.
2
CODING
Main Activity
<?php
include 'db_connect.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hostel Management System</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
text-align: center;
width: 400px;
}
h2 {
color: #333;
}
.btn {
display: block;
width: 100%;
padding: 12px;
margin: 10px 0;
text-decoration: none;
color: white;
font-size: 16px;
border-radius: 5px;
text-align: center;
}
.student-btn {
background-color: #28a745;
}
3
.admin-btn {
background-color: #007bff;
}
.btn:hover {
opacity: 0.9;
}
</style>
</head>
<body>
<div class="container">
<h2>🏠 Hostel Management System</h2>
<a href="student_register.php" class="btn student-btn">👨🎓 Student Registration</a>
<a href="admin_login.php" class="btn admin-btn">🔑 Admin Login</a>
</div>
</body>
</html>
Intent intent = new Intent(MainActivity.this, DashboardActivity.class);
startActivity(intent);
} else {
Database File
<?php
$host = "localhost";
$user = "root";
$pass = "";
$dbname = "hostel 123";
if ($conn->connect_error) {
die("Database Connection Failed: " . $conn->connect_error);
}
?>
Student Registration
<?php
include 'db_connect.php';
session_start();
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $_POST['name'];
$email = $_POST['email'];
$contact = $_POST['contact'];
$room_no = $_POST['room_no'];
if ($result->num_rows > 0) {
echo "<script>
alert('You are already registered! Redirecting to login page.');
window.location.href='student_login.php';
</script>";
} else {
// Student Register Query
$sql = "INSERT INTO students (name, email, contact, room_no) VALUES ('$name',
'$email', '$contact', '$room_no')";
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Registration</title>
<style>
body {
font-family: Arial, sans-serif;
5
background-color: #f4f4f4;
text-align: center;
padding: 50px;
}
.container {
background: white;
padding: 20px;
width: 350px;
margin: auto;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
input {
width: 90%;
padding: 8px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 5px;
}
.btn {
background-color: #28a745;
color: white;
padding: 10px;
width: 100%;
border: none;
cursor: pointer;
margin-top: 10px;
}
.btn:hover {
opacity: 0.9;
}
.login-btn {
background-color: #007bff;
}
</style>
</head>
<body>
<div class="container">
<h2>👨🎓 Student Registration</h2>
<form method="POST">
<input type="text" name="name" placeholder="Enter Name" required><br>
<input type="email" name="email" placeholder="Enter Email" required><br>
<input type="text" name="contact" placeholder="Enter Contact" required><br>
<input type="text" name="room_no" placeholder="Enter Room Number" required><br>
<button type="submit" class="btn">Register & Login</button>
</form>
<br>
<a href="student_login.php">
<button class="btn login-btn">Already Registered? Login Here</button>
</a>
</div>
</body>
6
OUTPUT
CONCLUSION
The College Management System provides an efficient and structured solution to manage various
academic and administrative activities within a college. By digitalizing processes such as student
management, attendance tracking, leave applications, and notifications, the system reduces manual
work and enhances communication between students, faculty, and administrators.
With role-based access and real-time data synchronization using Firebase, the system ensures
security, efficiency, and ease of use. This project not only simplifies college operations but also
improves transparency and accessibility. Implementing such a system can lead to a well-organized
academic environment, ultimately benefiting both students and faculty.
11
6
REFERENCE
1. MAD Book
2. www.chatgpt.openai.com
3. Subject Teacher.
11
7
11
WEEKLY PROGRESS REPORT
Literature Review
3 3rd
Collection of Data
4 4th
Collection of Data
5 5th
Formulation of Content
7 7th
Compilation of report
8 8th
and presentation
9 9th Seminar
11
8
11