0% found this document useful (0 votes)
11 views

php microproject.php

The document is a micro project report titled 'Expense Tracker' submitted by students of Sandip Polytechnic as part of their Computer Engineering diploma. It outlines the project's aims, methodology, and learning outcomes, focusing on developing a digital platform for tracking personal and business finances. The report includes certificates of completion for each student, a detailed project proposal, and an evaluation sheet assessing their performance.

Uploaded by

sahildawange37
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

php microproject.php

The document is a micro project report titled 'Expense Tracker' submitted by students of Sandip Polytechnic as part of their Computer Engineering diploma. It outlines the project's aims, methodology, and learning outcomes, focusing on developing a digital platform for tracking personal and business finances. The report includes certificates of completion for each student, a detailed project proposal, and an evaluation sheet assessing their performance.

Uploaded by

sahildawange37
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

A

Micro Project Report


On

“EXPENSE
TRACKER”
Submitted by
Sarvesh Jamadar
Sahil Dawange
Prajwal Ahire
Snehal Koli

Under the Guidance of


Prof. Pooja Datir

In the Partial Fulfilment of Sixth Semester of Diploma in


Computer Engineering

Department of Computer
Engineering Sandip
Polytechnic Mahiravani,
Nashik - 422213

Affiliated to

Maharashtra State
Board of Technical Education

Academic Year 2024-25


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Mr. Sarvesh Jitendra Jamadar with Roll No-03 has successfully completed Micro-
project in course “Computer Engineering” for the academic year 2024-25 as prescribed in the 'Assessment
Manual ' during his tenure of completing Sixth Semester of Diploma Program in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.

Place: Nashik Enrollment No :2211670095

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Mr. Sahil Suresh Dawange with Roll No-11 has successfully completed Micro-project
in course “Computer Engineering” for the academic year 2024-25 as prescribed in the 'Assessment Manual '
during his/her tenure of completing Sixth Semester of Diploma Program in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.

Place: Nashik Enrollment No :2211670105

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Mr. Prajwal Manik Ahire with Roll No-12 has successfully completed Micro- project
in course “Computer Engineering” for the academic year 2024-25 as prescribed in the ' Assessment Manual '
during his/her tenure of completing Sixth Semester of Diploma Program in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.

Place : Nashik Enrollment No:2211670106

Date: ExamSeat No:

Course Teacher Head of the Department Head of the Institute


Maharashtra State
Board of Technical Education

Certificate

This is to certify that Mr. Snehal Prabhakar Koli with Roll No-27 has successfully completed Micro-project
in course “Computer Engineering” for the academic year 2024-25 as prescribed in the ' Assessment Manual '
during his/her tenure of completing Sixth Semester of Diploma Program in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.

Place : Nashik Enrollment No: 2211670130

Date: Exam Seat No:

Course Teacher Head of the Department Head of the Institute


Annexure–I

Micro Project Proposal

Aims/Benefits of the Micro-Project:


Managing personal or business finances effectively is essential for financial stability. The Expense Tracker project
helps users record and monitor their daily expenses and income efficiently. Users can categorize their transactions,
set budgets, and analyze spending patterns over time. The system provides a user-friendly interface to log
transactions, generate reports, and visualize financial data using charts. This project ensures better financial
planning, helps users control unnecessary expenditures, and promotes savings by offering insights into spending
habits.
1.0 Rationale
Managing expenses manually can be time-consuming and prone to errors, leading to financial
mismanagement. Many individuals and small businesses struggle to track their income and spending
efficiently, often relying on spreadsheets or paper records. The Expense Tracker project addresses this
issue by providing an online platform where users can effortlessly log their transactions, categorize
expenses, and generate reports. With real-time tracking and insightful analytics, this system helps users
make informed financial decisions, avoid overspending, and improve their budgeting habits.

2.0 Aim /Benefits of Micro-Project:

1.0 To provide a digital platform for tracking daily expenses and income.
2.0 To help users categorize and analyze their spending habits efficiently

3.0 Course Outcomes Addressed:


1. Develop a program using control statements for managing financial transactions. (CO605.1)
2. Perform operations on arrays to store and manipulate expense data efficiently. (CO605.2)
3. Use form controls with validation to securely collect and process user input. (CO605.4)
4. Perform database operations in PHP to store, retrieve, and analyze expense records. (CO605.5)

4.0 Literature Review:


In today’s digital era, financial management is becoming increasingly important for individuals and
businesses alike. People often struggle to track their daily expenses and income manually, leading to
financial mismanagement and overspending. Traditional methods, such as maintaining paper records or
using spreadsheets, are inefficient and prone to errors. Existing expense tracking solutions often require
users to input data manually, making the process time-consuming. Additionally, many applications come
with complex interfaces or subscription fees, limiting accessibility. To address these issues, the Expense
Tracker system is designed to provide a simple, efficient, and automated way to record transactions,
categorize expenses, and generate financial reports. By offering an easy-to-use and free alternative, this
system helps users gain better control over their finances and make informed decisions.
5.0 Methodology followed
5.1 Step wise work done:
1. In this micro-project, the first step was selecting an appropriate topic for development.
2. We decided on our topic, i.e., “Expense Tracker.”
3. We conducted a literature survey to understand existing financial tracking solutions and identified the need
for a simple, efficient expense management system.
4. We gathered relevant information on financial management techniques and the requirements for developing
an effective expense tracker.
5. We designed and implemented the PHP-based Expense Tracker system, incorporating features like
transaction recording, categorization, and report generation.
6. We analyzed and tested the system to ensure functionality, usability, and accuracy in tracking expenses.
7. By following these steps, we successfully completed our micro-project.
Code :

1. Sql Database:

CREATE TABLE users (


id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100),
email VARCHAR(100) UNIQUE,
password VARCHAR(255)
);

CREATE TABLE expenses (


id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT,
category VARCHAR(50),
amount DECIMAL(10,2),
description TEXT,
date DATE,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);

2. Main php code:


<?php
session_start();

// Database connection
$host = "localhost";
$user = "root";
$pass = "";
$dbname = "expense_tracker";
$conn = new mysqli($host, $user, $pass, $dbname);

if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

// Handle Registration
if (isset($_POST["register"])) {
$name = $_POST["name"];
$email = $_POST["email"];
$password = password_hash($_POST["password"], PASSWORD_DEFAULT);
$sql = "INSERT INTO users (name, email, password) VALUES ('$name', '$email',
'$password')";
if ($conn->query($sql)) {
echo "Registration successful. <a href='?login'>Login here</a>";
} else {
echo "Error: " . $conn->error;
}
}

// Handle Login
if (isset($_POST["login"])) {
$email = $_POST["email"];
$password = $_POST["password"];

$sql = "SELECT * FROM users WHERE email='$email'";


$result = $conn->query($sql);
if ($result->num_rows > 0) {
$user = $result->fetch_assoc();
if (password_verify($password, $user["password"])) {
$_SESSION["user_id"] = $user["id"];
header("Location: index.php");
} else {
echo "Incorrect password.";
}
} else {
echo "User not found.";
}
}

// Handle Adding Expenses


if (isset($_POST["add_expense"])) {
$user_id = $_SESSION["user_id"];
$category = $_POST["category"];
$amount = $_POST["amount"];
$description = $_POST["description"];
$date = $_POST["date"];

$sql = "INSERT INTO expenses (user_id, category, amount, description, date)


VALUES ('$user_id', '$category', '$amount', '$description', '$date')";
if ($conn->query($sql)) {
echo "Expense added successfully.";
} else {
echo "Error: " . $conn->error;
}
}
// Handle Logout
if (isset($_GET["logout"])) {
session_destroy();
header("Location: index.php");
}

// If user is not logged in, show login and registration forms


if (!isset($_SESSION["user_id"])) {
?>
<h2>Register</h2>
<form method="POST">
<input type="text" name="name" placeholder="Full Name" required><br>
<input type="email" name="email" placeholder="Email" required><br>
<input type="password" name="password" placeholder="Password" required><br>
<button type="submit" name="register">Register</button>
</form>

<h2>Login</h2>
<form method="POST">
<input type="email" name="email" placeholder="Email" required><br>
<input type="password" name="password" placeholder="Password" required><br>
<button type="submit" name="login">Login</button>
</form>
<?php
} else {
// If user is logged in, show expense dashboard
$user_id = $_SESSION["user_id"];
$sql = "SELECT SUM(amount) AS total FROM expenses WHERE user_id=$user_id";
$result = $conn->query($sql);
$total = ($result->num_rows > 0) ? $result->fetch_assoc()["total"] : 0;
?>

<h2>Expense Dashboard</h2>
<p>Total Expenses: ₹<?php echo number_format($total, 2); ?></p>
<a href="?logout">Logout</a>

<h2>Add Expense</h2>
<form method="POST">
<input type="text" name="category" placeholder="Category" required><br>
<input type="number" step="0.01" name="amount" placeholder="Amount"
required><br>
<input type="text" name="description" placeholder="Description"><br>
<input type="date" name="date" required><br>
<button type="submit" name="add_expense">Add Expense</button>
</form>

<h2>Your Expenses</h2>
<table border="1">
<tr>
<th>Date</th>
<th>Category</th>
<th>Amount</th>
<th>Description</th>
</tr>
<?php
$sql = "SELECT * FROM expenses WHERE user_id=$user_id ORDER BY date
DESC";
$result = $conn->query($sql);
while ($row = $result->fetch_assoc()) {
?>
<tr>
<td><?php echo $row["date"]; ?></td>
<td><?php echo $row["category"]; ?></td>
<td>₹<?php echo number_format($row["amount"], 2); ?></td>
<td><?php echo $row["description"]; ?></td>
</tr>
<?php } ?>
</table>

<?php } ?>
Output :
 Skill Developed / Learning outcome of this Micro-Project:

1. Database Operations & User Authentication – Gained hands-on experience in performing crud
(Create, Read, Update, Delete) operations using MySQL and managing user authentication securely.
2. Form Validation & Input Handling – Implemented client-side and server-side validation to
ensure secure and accurate user inputs.
3. PHP & Control Statements – Applied conditional statements, loops, and functions to manage
expense entries and user interactions dynamically.
4. Session Management & Security – Used PHP sessions to maintain user login states and ensure
secure access to personal financial records.

 Applications
2. Personal Expense Management – Helps individuals track their daily, weekly, and monthly
expenses efficiently.
3. Budget Planning – Users can categorize expenses and analyze spending habits to plan their budget
effectively.

• Conclusion:
With the help of this project, we gained hands-on experience in PHP and MySQL while building a practical
Expense Tracker system. We explored various built-in features of PHP, such as session management, form
validation, database interactions, and CRUD operations. Additionally, we learned how to establish
communication between the server and database, ensuring smooth data handling

.References:

1. PHP CRUD Operations with MySQL – Guide on creating, reading, updating, and deleting records in a
MySQL database.
2. Building an Expense Tracker in PHP & MySQL – Example of an expense tracking system with source code.
3. Form Validation in PHP – How to validate user input in PHP.
4. PHP Sessions and Cookies – Managing user sessions for login and authentication.
5. Bootstrap 5 Documentation – Used for improving UI/UX design in the project.
WEEKLY PROGRESS REPORT
MICRO PROJECT

SR.NO. WEEK ACTIVITY PERFORMED SIGN OF GUIDE DATE

1. Discussion and finalization of topic


1st

2. Preparation and submission of Abstract


2nd

3. Collection of Data
3rd

4. Discussion and outline of Content


4th

5. Formulation of Content
5th

6. Editing and proof Reading of Content


6th

7. Compilation of Report and Presentation


7th

8. Seminar / Viva voce


8th

9. Final submission of Micro Project


9th

Sign of the student Sign of the faculty


1.1 Resources Required:

Sr
Name of Resource/Material Specification Qty. Remarks
No
Desktop with Intel Core 2 Duo 2.93 -
1 Hardware Resource GHz, RAM 4GB, SSD 160 GB 1
2 Software Resource Xampp, Notepad++ 1 -
3 Any Other Resource javatpoint 1 -

Name of Team Members with Roll No:

Roll No Name of Team Members


Sarvesh Jitendra Jamadar
03

11 Sahil Suresh Dawange


Prajwal Manik Ahire
12
Snehal Prabhakar Koli
27

Prof. Pooja Datir


Name & Signature of Course Teacher
Annexure – IV

Micro Project Evaluation Sheet


Name of Student: Sarvesh Jitendra Jamadar Enrollment No: 2211670095
Name of Program : Computer Engineering Semester: VI

Course Title: Web Based Application Development with PHP Course Code:

22619 Title of Micro Project: “Expense Tracker”

Learning Outcomes Achieved:


1. Develop program using control statement.
2. Perform operations-based on arrays and graphics.
3. Develop program by applying various object-oriented concepts.
4. Use form controls with validation to collect user’s input.
5. Perform database operations in PHP.
Poor Average Good Excellent
Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No Total
(1-3) (4-5) (6-8) (9-10)
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information C-ollection
3 Completion of the Target as per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual
(10 Marks)
(6 Marks) Presentation/Viva (4
Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if


any)
…………………………………..……………………………………………………………………………
Name & Designation of Course Teacher: Prof. Pooja Datir, Lecturer
Dated Signature:
Annexure – IV

Micro Project Evaluation Sheet


Name of Student: Sahil Suresh Dawange Enrollment No: 2211670105
Name of Program : Computer Engineering Semester: VI
Course Title: Web Based Application Development with PHP Course Code: 22619
Title of Micro Project: “Expense Tracker”

Learning Outcomes Achieved:


1. Develop program using control statement.
2. Perform operation-based on arrays and graphics.
3. Develop program by applying various object-oriented concepts.
4. Use form controls with validation to collect user’s input.
5. Perform database operations in PHP.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No (1-3) (4-5) (6-8) (9-10) Total
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Target as per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual
(10 Marks)
(6 Marks) Presentation/Viva (4
Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if


any)
…………………………………..……………………………………………………………………………
Name & Designation of Course Teacher: Prof. Pooja Datir, Lecturer
Dated Signature:
Annexure – IV

Micro Project Evaluation Sheet


Name of Student: Prajwal Manik Ahire Enrollment No: 2211670106
Name of Program : Computer Engineering Semester: VI
Course Title: Web Based Application Development with PHP
CourseCode:22619 Title of Micro Project: “Expense Tracker”

Learning Outcomes Achieved:


1. Develop program using control statement.
2. Perform operations based on arrays and graphics.
3. Develop program by applying various object-oriented concepts.
4. Use form controls with validation to collect user’s input.
5. Perform database operations in PHP.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No (1-3) (4-5) (6-8) (9-10) Total
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Target as per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual
(10 Marks)
(6 Marks) Presentation/Viva (4
Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if


any)
…………………………………..……………………………………………………………………………
Name & Designation of Course Teacher: Prof.Pooja Datir, Lecturer
Dated Signature:
Annexure – IV

Micro Project Evaluation Sheet

Name of Student: Snehal Koli Enrollment No: 2211670130


Name of Program : Computer Engineering Semester: VI
Course Title: Web Based Application Development with PHP Course Code: 22619
Title of Micro Project: “Expense Tracker”

Learning Outcomes Achieved:


1. Develop program using control statement.
2. Perform operations based on arrays and graphics.
3. Develop program by applying various object oriented concepts.
4. Use form controls with validation to collect user’s input.
5. Perform database operations in PHP.

Poor Average Good Excellent


Sr Sub
Characteristic to be Assessed Marks Marks Marks Marks
No (1-3) (4-5) (6-8) (9-10) Total
(A) Process and Product Assessment (6 Marks)
1 Relevance to the Course
2 Literature Review/Information Collection
3 Completion of the Target as per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual
(10 Marks)
(6 Marks) Presentation/Viva (4
Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if


any)
…………………………………..……………………………………………………………………………
Name & Designation of Course Teacher: Prof. Pooja Datir, Lecturer
Dated Signature:

You might also like