PHP_Report
PHP_Report
(Aided Wing)
2024-2025
1
Title of Micro-project
India is a land of diverse cultures, traditions, and historical landmarks, known for its rich heritage
that spans thousands of years. Among its many cultural treasures, temples and monuments stand as
testaments to the country's deep-rooted history, architectural brilliance, and spiritual significance.
Each heritage site reflects unique aspects of its region’s past, artistic styles, and religious practices,
offering a glimpse into India's glorious civilization.
This project, Exploring Indian Heritage, aims to provide an informative and visually engaging
platform to explore India's renowned heritage sites. Through high-quality images and detailed
descriptions, users can discover the history, architecture, and cultural importance of these landmarks.
The website is designed with an interactive and user-friendly interface to enhance the experience of
exploring Indian heritage.
Heritage sites in India are more than just historical structures; they symbolize the nation's rich past,
connect generations, and preserve timeless traditions. This website serves as a digital gateway,
inviting visitors to embark on a journey through India's magnificent heritage and appreciate its
invaluable cultural legacy.
2. Aims of Micro-Project :
This Micro-project aims at:-
3. Action Plan:
2
Sr. Details of activity Planned Planned Name of Responsible
No start date Finish date Team member
1. Discuss about project 05-01-2025 11-01-2025 ALL MEMBERS
2. Finally select the topic of the project. 11-01-2025 12-01-2025 ALL MEMBERS
3. Collect the information of project. 12-01-2025 13-01-2025 ALL MEMBERS
4. Draw output of in rough. 13-01-2025 27-01-2025 ALL MEMBERS
5. Collection of Data 27-01-2025 03-02-2025 ALL MEMBERS
6. Collection of Data 03-02-2025 08-02-2025 ALL MEMBERS
7. Collection of Data 08-02-2025 09-02-2025 ALL MEMBERS
8. Collection of Data 09-02-2025 10-02-2025 ALL MEMBERS
9. Discussion and outline of Content 10-02-2025 17-02-2025 ALL MEMBERS
10. Formulation of Content 17-02-2025 24-02-2025 ALL MEMBERS
11. Editing and proof Reading of content 24-02-2025 03-03-2025 ALL MEMBERS
12. Compilation and report presentation 03-03-2025 10-03-2025 ALL MEMBERS
4. Resources Required :
2.
Internet Google Sites Many
3. Laboratory manual of Computer Group
PHP Of ,Diploma Semester 1
VI,MSBTE
5. Project Team Members:
3
Sr.no Team Members Name Roll no Sign
1. Kumbhar Prarthana Ganpati 21
4
Web Based Application Development Using PHP
(22619)
A
Micro-Project Report
On
“ Exploring Indian Heritage”
Micro-Project Group Members -
Sr. No. Name of group members Roll No Enrollment No Seat No.
1. Kumbhar Prarthana Ganpati 21 2200120021 167134
2. Kudave Utkarsha Uday 45 2200120083 167156
2024-2025
5
This is to certify that,
Certificate
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
INDEX
6
No. No.
1 Introduction 8
2 Proposed System 9
3 Action Plan 10
4 Source Code 11
5 Snapshots 23
6 Key Features 25
7 Concepts Used 26
8 Conclusion 28
1. Introduction :
India, a land of timeless traditions and dynamic cultural legacy, is globally revered for its incredible
heritage and historical richness. From majestic forts and palaces to sacred temples and ancient
monuments, every corner of the nation tells a story of its glorious past. This vibrant cultural mosaic
7
reflects the art, architecture, spirituality, and societal values that have evolved over thousands of
years.
The aim of this website is to digitally showcase some of India’s most iconic heritage sites, offering
users a visually enriching and informative experience. With the help of vivid images, engaging
descriptions, and interactive web features, this platform serves as a virtual tour of India’s historical
landmarks. It highlights not only their architectural brilliance but also their significance in shaping
the identity and spirit of the nation.
By navigating through this website, users will be able to explore diverse aspects of Indian heritage—
from ancient temples and royal forts to spiritual centers and culturally significant structures. Each
element presented here contributes to preserving India’s legacy and inspiring appreciation for its
extraordinary heritage.
This project is a celebration of India’s cultural wealth, aimed at spreading awareness, educating
visitors, and fostering a deeper connection with the roots of this ancient civilization.
2. Proposed System :
The Exploring Indian Heritage system is a dynamic and responsive website designed to
provide detailed information about India’s most iconic heritage sites, including temples,
monuments, historical landmarks, and cultural treasures. The website aims to highlight the
8
richness of India’s cultural and historical legacy through an engaging and educational digital
platform. It features an intuitive user interface, supporting functionalities such as simple
navigation, category-wise exploration, and dedicated pages for each heritage site.
Users can explore various heritage locations, learn about their historical background and cultural
importance, and view attractive images presented in a card layout format for better readability
and user experience.
Objective :
✓ Provide Information on Heritage Sites:
To build a comprehensive resource that showcases various Indian heritage places, highlighting
their origin, cultural relevance, and architectural uniqueness.
✓ User-Friendly Interface:
To create an easy-to-navigate and visually engaging website that allows users to explore heritage
locations without technical complexity.
3. Action Plan :
Sr. Details of activity Planned Planned Name of Responsible
No start date Finish date Team member
1. Discuss about project 05-01-2025 11-01-2025 ALL MEMBERS
2. Finally select the topic of the project. 11-01-2025 12-01-2025 ALL MEMBERS
9
3. Collect the information of project. 12-01-2025 13-01-2025 ALL MEMBERS
4. Draw output of in rough. 13-01-2025 27-01-2025 ALL MEMBERS
5. Collection of Data 27-01-2025 03-02-2025 ALL MEMBERS
6. Collection of Data 03-02-2025 08-02-2025 ALL MEMBERS
7. Collection of Data 08-02-2025 09-02-2025 ALL MEMBERS
8. Collection of Data 09-02-2025 10-02-2025 ALL MEMBERS
9. Discussion and outline of Content 10-02-2025 17-02-2025 ALL MEMBERS
10. Formulation of Content 17-02-2025 24-02-2025 ALL MEMBERS
11. Editing and proof Reading of content 24-02-2025 03-03-2025 ALL MEMBERS
12. Compilation and report presentation 03-03-2025 10-03-2025 ALL MEMBERS
Team Members :
4. Source Code :
register.php – WHERE email = ?")
session_start(); $conn->error);
10
correctly establishes the database connection >bind_param("s", $email);
$check_email->execute();
// Check if the connection is successful $check_email->store_result();
if (!$conn) {
die("Database connection failed: " . $conn- if ($check_email->num_rows >
>connect_error); 0) {
} $error = "Email already
registered!";
if ($_SERVER["REQUEST_METHOD"] == } else {
"POST") { // Hash the password for
// Get form values security
$name = trim($_POST['name']); $hashed_password =
$phone = trim($_POST['phone']); password_hash($password,
$address = trim($_POST['address']); PASSWORD_DEFAULT);
$email = trim($_POST['email']);
$password = trim($_POST['password']); // Insert user data into the
database
// Validate fields $insert = $conn-
if (empty($name) || empty($phone) || >prepare("INSERT INTO register
empty($address) || empty($email) || (name, phone, address, email,
empty($password)) { password) VALUES (?, ?, ?, ?, ?)")
$error = "All fields are required!"; or die("Prepare failed: " .
} else { $conn->error);
// Check if email already exists $insert->bind_param("sssss",
$check_email = $conn- $name, $phone, $address, $email,
>prepare("SELECT id FROM register $hashed_password);
if ($insert->execute()) {
11
<title>Register</title>
<style> .btn {
body { width: 100%;
font-family: Arial, sans-serif; padding: 10px;
background: url('backimg.jpg') no- background: #28a745;
repeat center fixed; color: white;
background-size: cover; border: none;
display: flex; border-radius: 4px;
justify-content: center; margin-top: 15px;
align-items: center; cursor: pointer;
height: 100vh; }
} .btn:hover {
.form-container { background: #218838;
background: rgba(255, 255, 255, 0.92); }
padding: 20px; p{
border-radius: 8px; text-align: center;
width: 350px; margin-top: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, }
0.1); .error-msg {
} color: red;
h2 { text-align: center;
text-align: center; margin-bottom: 10px;
color: #333; }
margin-bottom: 15px; </style>
} </head>
input { <body>
width: 100%; <form class="form-container"
padding: 8px; method="POST">
<form class="form-container"
method="POST"> <!DOCTYPE html>
<h2>Register</h2> <html lang="en">
<?php if (isset($error)) echo "<p <head>
class='error-msg'>$error</p>"; ?> <meta charset="UTF-8">
12
<input type="text" name="name" <meta name="viewport"
placeholder="Full Name" required> content="width=device-width,
<input type="text" name="phone" initial-scale=1">
placeholder="Phone Number" required> <title>Exploring Indian Heritage -
<input type="text" name="address" Login</title>
placeholder="Address" required> <style>
<input type="email" name="email" body {
placeholder="Email Address" required> font-family: Arial, sans-serif;
<input type="password" background:
name="password" placeholder="Password" url('backimg.jpg') no-repeat center
required> fixed;
<button type="submit" background-size: cover;
class="btn">Register</button> display: flex;
<p>Already registered? <a justify-content: center;
href="signup.php">Login here</a></p> align-items: center;
</form> height: 100vh;
</body> }
</html> .form-container {
background: rgba(255, 255,
255, 0.9);
padding: 20px;
border-radius: 8px;
13
border: 1px solid #ccc; placeholder="Password" required>
border-radius: 4px; <button type="submit"
} class="btn">Login</button>
.btn { <p>Don't have an account? <a
width: 100%; href="register.php">Register
padding: 10px; here</a></p>
background: #007bff; </form>
color: white; </body>
border: none; </html>
border-radius: 4px;
margin-top: 15px;
cursor: pointer;
home.php –
}
<?php
.btn:hover { background: #0056b3; }
include 'db_connect.php';
p { text-align: center; margin-top: 10px; }
session_start(); // Start session for
</style>
login check
</head>
?>
<body>
<!DOCTYPE html>
<form class="form-container"
method="post">
<html lang="en">
<h2>Login</h2>
<head>
<?php if (isset($error)) echo "<p
<meta charset="UTF-8">
style='color:red;text-align:center;'>$error</p>
"; ?>
14
*{ padding: 0;
margin: 0; }
padding: 0; .sidebar ul li {
box-sizing: border-box; margin: 15px 0;
} }
body { .sidebar ul li a {
font-family: 'Segoe UI', Tahoma, color: white;
Geneva, Verdana, sans-serif; text-decoration: none;
background-color: #f4f7fc; font-size: 1.2em;
color: #333; display: block;
display: flex; padding: 10px;
} transition: 0.3s;
.sidebar { position: relative;
width: 250px; z-index: 1001;
height: 100vh; }
background: #2c3e50; .sidebar ul li a:hover {
color: white; background: #f39c12;
padding: 20px; }
position: fixed; .main-content {
top: 0; margin-left: 270px;
left: 0; width: calc(100% - 270px);
z-index: 1000; padding: 20px;
} }
header { .content {
text-align: center; max-width: 1000px;
padding: 20px; margin: auto;
background: linear-gradient(135deg, padding: 40px;
#ff7e5f, #feb47b); background: white;
color: white; border-radius: 12px;
15
display: flex; box-shadow: 0 5px 15px
justify-content: space-between; rgba(0, 0, 0, 0.1);
align-items: center; }
} .content h2 {
header h1 { text-align: center;
margin: 0; }
font-size: 2.5em; footer {
} background: #333;
.banner { color: white;
width: 100%; text-align: center;
height: 450px; padding: 15px;
overflow: hidden; margin-top: 30px;
position: relative; }
} </style>
.banner img { </head>
width: 100%; <body>
height: 100%; <div class="sidebar">
object-fit: cover; <h2>Menu</h2>
position: absolute; <ul>
opacity: 0; <li><a
transition: opacity 1s ease-in-out; href="profile.php">Profile</a></li>
} <li><a
.banner img.active { href="home.php">Home</a></li>
opacity: 1; <li><a
} href="heritage.php">Heritage
Sites</a></li>
<li><a
href="about_heritage.php">About</a></li>
<li><a </body>
href="heritage_contact.php">Contact</a></li> </html>
</ul>
</div>
16
<div class="main-content">
<header>
<h1>Exploring Indian Heritage</h1>
<?php if(isset($_SESSION['user'])) { ?
>
<a href="profile.php" style="color:
white; font-size: 18px; text-decoration:
none;">Profile</a> |
<a href="logout.php" style="color:
white; font-size: 18px; text-decoration:
none;">Logout</a>
<?php } else { ?>
<a href="login.php" style="color:
white; font-size: 18px;">Login</a>
<?php } ?>
</header>
<div class="banner" id="banner">
<img src="sindhu5.jpg"
alt="Sindhudurg Malvan" class="active">
5. Snapshots :
17
Register Page Login Page
18
Hampi Hampi
6. Key Features :
• Responsive Design:
The website is developed with a fully responsive layout to ensure a seamless browsing experience
across all screen sizes and devices — including smartphones, tablets, and desktops. The design
automatically adjusts elements such as layout, images, and text to maintain optimal readability and
user experience.
19
• Heritage Information Pages:
Each heritage site has its own dedicated page, offering in-depth information under the following
sections:
• User-Friendly Navigation:
The website offers a clean and intuitive navigation structure, allowing users to explore various
heritage sites, their details, and nearby locations with ease.
7. Concepts used :
20
- $_SESSION to store user login data (like user_id).
- Redirection using header("Location: page.php") after login.
4. Conditional Rendering:
Concepts:
- Dynamic behavior based on session or input.
Methods Used:
- if (!isset($_SESSION['user_id'])) to check login.
- if ($_SERVER["REQUEST_METHOD"] == "POST") for form submission.
- PHP inside HTML to render name/email conditionally:
php
<?php echo $user['name']; ?>
21
Methods Used:
- JS function toggleSidebar() for opening/closing.
- PHP pre-fills user data in form.
- Styled with CSS for smooth UX.
22
8. Conclusion :
In conclusion, the “Exploring Indian Heritage” project offers a digital journey through
the cultural, architectural, and historical richness of India. By highlighting iconic heritage sites—
ranging from ancient temples and grand forts to sacred monuments—this website aims to connect
users with the timeless legacy of our nation.
Through engaging visuals, informative content, and user-friendly features, the project
brings to life the stories and significance behind each landmark. It not only educates users but
also fosters a deeper appreciation for the diversity and beauty of India’s heritage.
This initiative is a celebration of India's identity—where tradition, art, and history come
together in harmony. We hope this website encourages users to explore, preserve, and take pride
in the vibrant cultural legacy that continues to inspire generations.
Software/Learning Websites:
• http://nptel.ac.in/courses/106105085/4
• www.w3schools.com
• https://www.codecademy.com/courses/getting-started-v2/0/1
• http://spoken-tutorial.org/
Group Members:
Roll No. Enrollment No. Seat No. Name Remark if any
21
45
Signature: ……………………………
5.
Using proper statements( in Java)
Converting it in actual
6.
programming language .
7. Analyzing Output