You are on page 1of 40

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

"JnanaSangama", Machhe, Belagavi, Karnataka -590018

A Mini Project Report


On
“ Daily Expense Management System using Data Stored Procedure”

Submitted in partial fulfillment towards DBMS Laboratory with Mini Project(18CSL58)


of V Semester

Bachelor of Engineering in
Information Science and Engineering

Submitted by
Sanjana B Raj 4GW16IS043
Safa Farheen 4GW18IS045
Vaidehi M Purohit 4GW18IS056

Under the Guidance


Mr. Anand M Assistant
Professor
Dept. of ISE, GSSSIETW

Department of Information Science and Engineering


(Accredited by NBA, New Delhi, Validity 01.07.2020 to 30.06.2023)

GSSS INSTITUTE OF ENGINEERING & TECHNOLOGY FOR WOMEN


(Affiliated to VTU, Belagavi, Approved by AICTE -New Delhi & Govt. of Karnataka)
K.R.S Road, Metagalli, Mysuru-570016 Accredited
with Grade ‘A’ by NAAC
2019-21
Geetha Shishu Shikshana Sangha(R )
GSSS INSTITUTE OF ENGINEERING & TECHNOLOGY FOR WOMEN
(Affiliated to VTU, Belagavi, Approved by AICTE -New Delhi & Govt. of Karnataka)
K.R.S Road, Mysuru, Karnataka-570016 Accredited
with Grade ‘A’ by NAAC

DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING


(Accredited by NBA, New Delhi, Validity 01.07.2020 to 30.06.2023)

CERTIFICATE

Certified that the Mini project work entitled “Daily Expense Managemant system using data stotred
process” is a bonafide work carried out by Bhuvana A N [4GW17IS003], Chaithra K [4GW17IS004], Chinmayi S
[4GW17IS005]in partial fulfillment for the award of degree of Bachelor of Engineering in Information Science And
Engineering of the Visvesvaraya Technological University, Belagavi during the year 2019-
20. The Database Management Systems with Mini project report has been approved as it satisfies the academic
requirements with respect to the Mini Project Work prescribed for Bachelor of Engineering Degree.

Signature of the Guide Signature of the HOD


Mr.Anand M Dr. Reshma Banu
Assistant Professor Professor and Head

External Viva

Name of the Examiners Signature with Date

1.

2.
ACKNOWLEDGEMENT
We sincerely owe our gratitude to all the persons who helped and guided us in completing this Mini project
work.

We express our deep sense of gratitude to Smt. Vanaja B Pandit, Honorary Secretary, GSSS(R) and the
Management of GSSSIETW, Mysuru for permitting us to utilize all the facilities of the Institution.

We would like to express our gratitude to our Principal, Dr. Shivakumar M for providing us a congenial
environment for engineering studies and also for having showed us the way to carry out the project.

We would like to sincerely thank to our HOD, Dr. Reshma Banu, Professor and Head, Department of
Information Science and Engineering for her valuable guidance, constant assistance and constructive
suggestions for the effectiveness of Mini project, without which this project would not have been possible.

We would like to thank our guide Mr. Anand M, Assistant Professor, Department of Information Science
and Engineering for his constant monitoring, guidance & motivation throughout the tenure of this Mini
project work.

We would also like to thank all our ISE staff members and non-teaching staff who have always been with us
extending their precious suggestions, guidance and encouragement throughout the Mini project.

We would also like to thank all our ISE staff members and non-teaching staff who have always been with us
extending their precious suggestions, guidance and encouragement throughout the Mini project.

Sanjana B Raj
Safa Farheen
Vaidehi M Purohit
ABSTRACT
Income and Expense Tracker will maintain data of daily, weekly, monthly, yearly expenses, Manages
your expenses and earnings in a simple and intuitive way. User can select category of expense, enter other
information like user can capture photo, add location, select amount of expense etc. And this will save to the
local database. User can view and sort expense as per weekly, monthly, yearly. By using this, we can reduce the
manual calculations for their expenses and keep the track of the expenditure. In this, user can provide his
income to calculate his total expenses per day and these results will stored for unique user. People when usually
go for trips or movies with friends they can use this traker to maintain their expense. It will be easy for them to
share the bill in this tracker.This will display graph as per selected view. And user can enter his monthly income
or limit of monthly Expense in this tracker. This tracker system provides an integrated set of features to help
you to manage your expenses and cash flow.

Expense tracker is a refined system which allows user to efficiently manage his/her expenses with ease.
Tracking expenses daily can really help to us save lot of money. Once we start off by tracking our expenses
each day, we will be able to get a better idea where you are spending your money, so you stay in control and
achieve your goal. It will be able to generate your expense and saving report as time duration you selected.
There will be a reminder that will help to save money for your pre-defined expenses.

Conclusion After making this application we assure that this application will help its users to manage the
cost of their daily expenditure. It will guide them and aware them about there daily expenses. It will prove to be
helpful for the people who are frustrated with their daily budget management, irritated because of amount of
expenses and wishes to manage money and to preserve the record of their daily cost which may be useful to
change their way of spending money. In short, this application will help its users to overcome the wastage of
money.

.
CONTENTS
Page No
1. INTRODUCTION
1.1 Overview 1

1.2 Existing System 1


1-2
1.3 Proposed System
2
1.4 Objetive
2
1.5 Organization of report
2. LITERATURE SURVEY
3-4
2.1 Literature Survey

3. SYSTEM REQUIREMENT AND DESIGN


3.1 REQUIREMENTS
5-6
3.1.1 Functional Requirements
6
3.1.2 Non-Functional Requirements
7
3.1.3 Hardware Requirements
3.1.4 Software Requirements 7
3.2 DESIGN
3.2.1 Entity and Relationship Diagram 8
3.2.2 Schema Diagram 9
3.2.3 Use case diagrams 9
3.2.4 Sequence diagrams 10
3.2.5 Flow Chart 10-11
4. IMPLEMENTATION
4.1 Tools and Technologies used
4.2 Admin module 12-13
4.2.1 Home Page 14
4.2.2 Admin Login 14-15
4.2.3 Manage User 15
4.2.4 Overall Expense Chart 16
4.1 User module
4.1.1 User Registration 17-18
4.1.2 User Login 18-19
4.1.4 Add expense 20-21
5. TESTING
22-23
5.1 Introduction
23-24
5.2 Unit Testing
25
5.2 Integration Testing
6. RESULT AND CONCLUSION
6.1 Snapshots 26-29
6.2 Conclusion 29
6.3 Future Enhancement 29
7 . REFERENCES 30
LIST OF FIGURES

FIGURE NUMBER DESCRIPTION PAGE NUMBER

3.2.1 Entity and Relationship 8


Diagram

3.2.2 Schema Diagram 9

3.2.3 Use case diagrams 9

3.2.4 Sequence diagrams 10

3.2.5 Flow Chart 10-11


LIST OF TABLES

TABLE DESCRIPTION PAGE NUMBER

7.2.1 Unit Test cases Table 23-24

7.3.1 Integration Test cases 24


Table
LIST OF SNAPSHOT

SNAPSHOT NUMBER DESCRIPTION PAGENUMBER


Snapshot 6.1.1 User Register Page
33
Snapshot 6.1.2 User Login Page
33
Snapshot 6.1.3 User Dashboard
34
Snapshot 6.1.4 User Expense Tracker
34
Snapshot 6.1.5 User Expense Chart 35
Snapshot 6.2.1 Home Page
35
Snapshot 6.2.2 Admin Login Page 36

Snapshot 6.2.3 Manage User


36
18CSL58 Daily expense management system using data stored procedure

Chapter-1 Introduction
1.1 Overview of project
In this project we propose a web application known as “Expense Tracker” which is helpful to
manage out income and expense as a daily or periodically or else whenever we want to remind. It also acts
as an indicator or reminder example in the fastest world which we can’t able to remember what are the
things we have to do for the end of month and what are the payments we have to pay for the particular
month. Due to some conflict or some other stress we forget some times that what are the income or where
the money has to come from or what the payments we have to pay. This application will help you to make a
note for what or the things we have to do for the end of month. For example, like how much it expenses for
monthly and what are the expenses for a month. Some of the expense features like food expenses billing
expenses like phone, electricity, taxation and some other personal expenses. In this fast-moving world this
web application will be very useful for a people who was a family and especially for a business people.
Budgeting is an integral part of the society. Budget Tracking involves recording and analyzing the incomes
and expenses of a person or an organization over a particular period of time. Today, since we are living in a
hurry up and get it done society, many people are looking forward to efficient ways to budget their time and
money. During the recent years, some research has been carried out on household budget. It has been noted
that in most cases, budget management is being done mentally and never being put on paper which makes
Budget Tracking very difficult.

1.2 Existing system

Existing system does not use the smart concept which are used now a days. In existing, we need to
maintain the Excel sheets, CSV etc. files for the user daily and monthly expenses. In existing, there is no as
such complete solution to keep a track of its daily expenditure easily. To do so a person as to keep a log in a
diary or in a computer, also all the calculations needs to be done by the user which may sometimes results
in errors leading to losses.

1.3 Proposed system

This new Online Income and Expense Tracker in PHP will eliminate all the demerits which are found under
the existing system. To reduce manual calculations, we propose an application which is developed by php.
Each user will be required to register on the system at registration time, the user will be provided id, which
will be used to maintain the record of each unique user. Expense Tracker project which will keep a track of
Income-Expense of a user on a day to day basis. This project takes Income from user and divides in daily
expense allowed. If you exceed that day’s expense it will cut if from your income and give new daily

Department of ISE Page 1


18CSL58 Daily expense management system using data stored procedure

expense allowed amount, and if that day’s expense is less it will add it in savings. Expense tracker will
generate report at the end of month to show Income-Expense via multiple graphs. Expense tracking
application system can generate report at the end of week or month to show Income-Expense via multiple
graphs. It will let you add the savings amount which you had saved for some particular Festivals like Diwali,
Birthdays. If we exceed the target of our budget it is automatically generate the notification that will sent
via E-mail. An email will be sent to the user at the end of each month giving a brief summary of the
monthly expenditure.

1.4 Objectives of project

Daily expense management system has been designed to monitor several daily expenses.We have
introduced some clever capabilities in our application to save time and reduce the attempt of the customers.
It lets in users to carry out a debit get entry to with the aid of the usage of in reality scanning a published
receipt.

1.5 Organization of the Project

The rest of the report is organized as fallows, Chapter 2 briefs the Literature survey. Chapter
3 provides information about system requirements and depicts various entities of their relation.
Chapter 4 incorporates pseudo code of each module. Chapter 5 includes the test cases are
discussed. Finally, chapter 6 includes the snapshots of the project, followed by conclusion.

Department of ISE Page 2


18CSL58 Daily expense management system using data stored procedure

CHAPTER 2 - LITERATURE SURVEY

Title : Smart Expense Management Model for Smart Homes

Author : Sumit Yadav.

Smart home technology is the near future necessity that aims to provide comfort and security with a
minimal cost by avoiding wasteful expenditure. In this research paper we have focused on the efficient
expense management by monitoring its timing and quantum of cash outflow. Our proposed model helps in
recording and keeping track of all types of expenses incurred by the household owner. The recorded
expenses are categorized to provide an insightful distribution of the total spending. Integration of smart
home with expense management system, increases the efficiency and effectiveness in the task of
maintaining household budget. In this research paper the significance and need of such a system is
discussed that helps in significant savings and future planning by analyzing daily household expenses with
available funds.

Survey Findings : The inculcation of the expense management system with the smart home technology
provides the resident for a personalized automated finance handling system which not only helps managing
the money but also provides with the ways of saving money

Title: eExpense: A Smart Approach to Track Everyday Expense


Author: Shahed Anzarus Sabab
Tracking regular expense is a key factor to maintain a budget. People often track expense using pen and
paper method or take notes in a mobile phone or a computer. These processes of storing expense require
further computations and processing for these data to be used as a traceable record. In this work, we are
proposing an automated system named as eExpense to store and calculate these data. eExpnese is an
application that runs on Android smartphones. By using this application, users can save their expense by
simply scanning the bills or receipt copies. This application extracts the textual information from the
receipts and saves the amount and description for further processing. It also monitors user's income by
tracking the received SMS's from the user's saving accounts. By calculating income and expense it produces
the user's balance in monthly and yearly basis. Overall, this is a smart automated solution for tracking
expense.

Department of ISE Page 3


18CSL58 Daily expense management system using data stored procedure

Title: Expense Tracker


Author: Vaibhav. V. Mainkar
In today’s busy and expensive life we are in a great rush to make money. But at the end of the month we
broke off. As we are unknowingly spending money on little and unwanted things. So, we have come over
with the idea to track our earnings. Daily Expense Tracker (DET) aims to help everyone who are planning
to know their expenses and save from it. DET is an website which users can execute in their mobile phones
and update their daily expenses so that they are well known to their expenses. Here user can define their
own categories for expense type like food, clothing, rent and bills where they have to enter the money that
has been spent and also can add some information in additional information to specify the expense. User
can also define expense categories. User will be able to see pie chart of expense. Although this website is
focused on new job holders, interns and teenagers, everyone who wants to track their expense can use this
app.

Department of ISE Page 4


18CSL58 Daily expense management system using data stored procedure

CHAPTER-3 SYSTEM REQUIREMENT SPECIFICATION

3.1 SYSTEM REQUIREMENT


3.1.1 Functional Requirements
A functional requirement contains the description of the users who are involved and it also explains about
the modules of the project and the functionalities of these modules.
Functional requirements capture the intended behavior of the system. This behavior may be
expressed as services, tasks or functions the system is required to perform. It describes” What a
software system should do”.

Load Application: These large datasets which is uploaded to the cloud need to have a relationship with all
the datasets, hence to discover this relationship between variables in large datasets. This association rule
will have variables to find using Confidence rule, support rule or lift rule.

Classification: Thus this variables need to be classified using SVM and K-Means algorithm.

Visualization: the prediction will be done in graphical representation.

Communication Interface Requirements


 User interface:
 Programming interface: the working frameworks can be on windows.
 Hardware interface: The execution of this project needs 32/64 bit operating system.

Functional Requirements
 User Registration

The student will enter the details like Name, Username, Password, Email, and Phone etc. to store the data
into the server, which will be used by the user to enter into application.

 Login

The user will specify his credentials like Username and Password to enter into the application for using
the application.

 Add Expenses
In this segment user can upload the Expenses details
 Manage Expenses

In this segment user can view the Expenses details and can delete based on needs.
Department of ISE Page 5
18CSL58 Daily expense management system using data stored procedure

View chart
In this segment user can upload view the expenses chart
Admin module

 Manage user
In this module, admin can manage user like admin can view user details and delete complaint based on
needs.

 View Graph
In this module admin can view the entire expenses result in a graph

3.1.2 Non-functional Requirements

 Performance

As the application is validating invalid data will not be sent to server, by this it saves the load on the
server. This also increases the performance of this application. All kind of network and input output
exceptions are handled, so it avoid the application from being crashed.

 Reliability

This application handles the sensitive data i.e. customer profile details and deposit details, so this is
made more reliable in its functionalities and see to that no variations are made to the database without
authentication.

 Availability

This application will be free of cost for the members to download from play stores and it is ease to
download and use.

 Maintainability

All the languages and IDEs used in this application is open source and the data is maintained very
well, so it is very easy to maintain this application.

 Security
This application can be gained access only by a member of co-operative society. This application
can be logged in only by providing a valid credential.

Department of ISE Page 6


18CSL58 Daily expense management system using data stored procedure

3.1.3 Hardware Requirements


• Processor : Intel i3 2 .4GHz

• Hard Disk : 40GB

• Ram : 4 GB or above

3.1.4 Software Requirements


• Operating system : Windows 7 and above

• Coding language : PHP

• Database : MySql

• Tools used : Notepad++

• Server : Xampp/Wamp

Department of ISE Page 7


18CSL58 Daily expense management system using data stored procedure

3.2 DESIGN
3.2.1 Entity and Relationship Diagram
Entity and Relationship Diagram is the various relationship between the entities, objective as the entity,
Entity relationship are described by their dependence on each other ,as well as the extent of the relationship
between the data stores. Relation between object and data

Entity: Entity is a thing in the real world with an independent existence. It is an very basic and
elementary building of storing info business activity

Relationship: A relationship in an entity relationship diagram is a connection named or an association


entities between which is used to relate two or more entities

Attribute: relationship are the entity of the description , Attributes are the property of entities

Key attribute: An entity usually has an attribute whose value are distinct for each individual entity in the
collection.

Figure 3.2.1: Entity and Relationship Diagram

Above ER diagram represents user Functionalities User can track daily expanses and commodities
based on need

Department of ISE Page 8


18CSL58 Daily expense management system using data stored procedure

3.2.2 Schema Diagram

Figure 3.2.2: Schema Diagram

3.2.3 Use case diagrams


The representation of characters, arrangement of use cases enclosed in a framework limit, also the
correspondence relationship between use cases and performing artist in a pictorial representation is the use
case diagram. The connection of framework with external entities is depicted in the use case diagram. Each
use cases tells about the usefulness that framework provides its clients. To distinguish and partition the
framework amid the examination process the use cases are utilized very much. The frame work here is
isolated into individual and according to their roles. The character here corresponds to the functions that the
user participates in the structure. Here users can be anyone like a processor, or an individual, any software
or any other portion of hardware.

Figure 3.2.3: Use case diagrams

Department of ISE Page 9


18CSL58 Daily expense management system using data stored procedure

3.2.4 Sequence diagrams:


The interaction of the module in the application are represented in sequence diagram. They are also
organized as instances in diagram. Sequence diagram is also known as event situation or even graphs. The
exchange of data and activates are shown in sequence diagram. In the view of the framework UML
(Unified Modelling language) grouping graphs are very much valuable because they give a active view
point.

Figure 3.2.4: Sequence diagrams

3.4.5 Flow Chart


In this developed project the flow chart illustrate the overall flow of control. This diagram symbolizes the
goings-on taking place in the project. There are different accomplishments for member. First it starts from
member who registers by giving valid credentials like account number and password and login via that
credential. Next is member can credit, apply for mortgage, view fine points of short-term and long-term
loan taken and transaction statements.

Department of ISE Page 10


18CSL58 Daily expense management system using data stored procedure

Figure 3.2.5: Flow Chart

Department of ISE Page 11


18CSL58 Daily expense management system using data stored procedure

CHAPTER-4 SYSTEM IMPLEMENTATION


4.1 Tools and Technologies used
4.1.1 PHP
Hypertext Preprocessor (or simply PHP) is a general-purpose programming language originally designed
for web development. It was originally created by Rasmus Lerdorf in 1994 the PHP reference
implementation is now produced by The PHP Group. PHP originally stood for Personal Home Page, but it
now stands for the recursive initialism PHP: Hypertext Preprocessor.

PHP code may be executed with a command line interface (CLI), embedded into HTML code, or used in
combination with various web template systems, web content management systems, and web frameworks.
PHP code is usually processed by a PHP interpreter implemented as a module in a web server or as a
Common Gateway Interface (CGI) executable. The web server outputs the results of the interpreted and
executed PHP code, which may be any type of data, such as generated HTML code or binary image data.
PHP can be used for many programming tasks outside of the web context, such as standalone graphical
applications and robotic drone control.

4.1.2: MySql

MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home-brewed lexical
analyzer. MySQL works on many system platforms, including AIX, BSDi, FreeBSD, HP-UX, eComStation,
i5/OS, IRIX, Linux, macOS, Microsoft Windows, NetBSD, Novell NetWare, OpenBSD, OpenSolaris, OS/2
Warp, QNX, Oracle Solaris, Symbian, SunOS, SCO OpenServer, SCO UnixWare, Sanos and Tru64. A port
of MySQL to OpenVMS also exists. The MySQL server software itself and the client libraries use dual-
licensing distribution.

4.1.3 XAMPP

XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache
Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts
written in the PHP and Perl programming languages. Since most actual web server deployments use the
same components as XAMPP, it makes transitioning from a local test server to a live server possible.

XAMPP's ease of deployment means a WAMP or LAMP stack can be installed quickly and simply on an
operating system by a developer. With the advantage a number of common add-in applications such as
WordPress and Joomla! can also be installed with similar ease using Bitnami.

Department of ISE Page 12


18CSL58 Daily expense management system using data stored procedure

4.1.4 HTML5

HTML stands for Hyper Text Markup Language. It is used to design web pages using markup language.
HTML is the combination of Hypertext and Markup language. Hypertext defines the link between the web
pages. Markup language is used to define the text document within tag which defines the structure of web
pages. HTML 5 is the fifth and current version of HTML. It has improved the markup available for
documents and has introduced application programming interfaces(API) and Document Object
Model(DOM).

4.1.5 CSS3

CSS stands for Cascading Style Sheets. CSS is a standard style sheet language used for describing the
presentation (i.e. the layout and formatting) of the web pages. Prior to CSS, nearly all of the presentational
attributes of HTML documents were contained within the HTML markup (specifically inside the HTML
tags); all the font colors, background styles, element alignments, borders and sizes had to be explicitly
described within the HTML.

As a result, development of the large websites became a long and expensive process, since the style
information were repeatedly added to every single page of the website.

To solve this problem CSS was introduced in 1996 by the World Wide Web Consortium (W3C), which also
maintains its standard. CSS was designed to enable the separation of presentation and content. Now web
designers can move the formatting information of the web pages to a separate style sheet which results in
considerably simpler HTML markup, and better maintainability.

CSS3 is the latest version of the CSS specification. CSS3 adds several new styling features and
improvements to enhance the web presentation capabilities.

2.1.6 Notepad++ :

Notepad++ is open source code editor written in C++. It supports various programming languages running
under the Microsoft Windows environment. It supports tabbed editing, which allows working with multiple
open files in a single window. The project's name comes from the C increment operator.

Department of ISE Page 13


18CSL58 Daily expense management system using data stored procedure

4.2 Admin Module

 Manage user
In this module user can mange user like user can view the user details and delete the user
based on user
 View graph
In this module admin view the overall user expenses chart

4.2.1 Home Page


<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['login']))
{
$email=$_POST['email'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"select ID from tbluser where Email='$email'
&& Password='$password' ");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['detsuid']=$ret['ID'];
header('location:dashboard.php');
}
else{
$msg="Invalid Details.";
}
}
?>
4.2.2 Admin Login
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');

Department of ISE Page 14


18CSL58 Daily expense management system using data stored procedure
if(isset($_POST['login']))
{
$email=$_POST['email'];
$password=$_POST['password'];
if(($email=="admin@gmail.com")&&($password=="admin"))
{
header('location:AdminHome.php');
}
else{
$msg="Invalid Details.";
}
}
?>
4.2.3 Manage User
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
// if (strlen($_SESSION['detsuid']==0)) {
// header('location:logout.php');
// } else{
//code deletion
if(isset($_GET['delid']))
{
$rowid=intval($_GET['delid']);
$query=mysqli_query($con,"delete from tbluser where ID='$rowid'");
if($query){
echo "<script>alert('Record successfully deleted');</script>";
echo "<script>window.location.href='manage-user.php'</script>";
} else {
echo "<script>alert('Something went wrong. Please try again');</script>";
}
}
?>

Department of ISE Page 15


18CSL58 Daily expense management system using data stored procedure
4.2.4 Overall Expense Chart
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['detsuid']==0)) {
header('location:logout.php');
} else{
if($stmt = $con->query("SELECT ExpenseItem, ExpenseCost FROM
tblexpense")){

echo "No of records : ".$stmt->num_rows."<br>";


$php_data_array = Array(); // create PHP array
"<table>
<tr> <th>Language</th><th>Nos</th></tr>";
while ($row = $stmt->fetch_row()) {
"<tr><td>$row[0]</td><td>$row[1]</td></tr>";
$php_data_array[] = $row; // Adding to array
}
"</table>";
}else{
echo $connection->error;
}
//print_r( $php_data_array);
// You can display the json_encode output here.
// echo json_encode($php_data_array);
// Transfor PHP array to JavaScript two dimensional array
echo "<script>
var my_2d = ".json_encode($php_data_array)."
</script>";

?>

Department of ISE Page 16


18CSL58 Daily expense management system using data stored procedure
4.3 User Module
4.3.1 User Registration
 Page :Registration

 Method: pageload event()

 Description: This method is to load register page to web application.

 Method: Registerdata()

 Description: In this method, it captures the values and save the data to database

 Method: Reset()

 Description: This method will clear all the controls of the form
Registration is the course of action where the user can input his / her data from the control and
store into the database for the reason of by means of it in the later part. The data like name email
phone etc are gathered and stored into the database for future use. In this module, the user will
enter the details like Name, Username, Password, Email, Phone etc to store the data into the
server, which will be used by the user to enter into application. In this process there will be
textboxes for the fields like username email phone password etc. These fields are stored into the
database by triggering an action binded to the submit button. If any invalid entries are there, it
will be identified by the javascript event. Then the valid entries are taken to backend to store it
inside the database table through the connection with the database.

<?php

session_start();

error_reporting(0);

include('includes/dbconnection.php');

if(isset($_POST['submit']))

$fname=$_POST['name'];

$mobno=$_POST['mobilenumber'];

$email=$_POST['email'];

$password=md5($_POST['password']);

Department of ISE Page 17


18CSL58 Daily expense management system using data stored procedure
$ret=mysqli_query($con, "select Email from tbluser where Email='$email' ");

$result=mysqli_fetch_array($ret);

if($result>0){

$msg="This email associated with another account";

else{

$query=mysqli_query($con, "insert into tbluser(FullName, MobileNumber, Email, Password)


value('$fname', '$mobno', '$email', '$password' )");

if ($query) {

$msg="You have successfully registered";

else

$msg="Something Went Wrong. Please try again";

?>

4.3.2 User Login

Page :

Login Method:

pageload ()

Description: This method is to load login page to web application


Method: Reset ()

Description: This method will clear login page controls of the form
Method: Verifydata ()

Description: This method retrieves data from the database and authenticate username and password.

Department of ISE Page 18


18CSL58 Daily expense management system using data stored procedure
Login is the process where the user can input his / her credentials where it will be verified
from the database for the reason of access the information from the application. The
application check for valid User name/Password to redirect explicit page. Once login to the
page then user will act upon tasks.In this page there will be field for the username and
password for entering the data. Once the user enters the data he clicks on the submit button to
generate the event for validate the credentials from the database user data table. If validates
successfully, the user will be redirected to a page else there will be a Po pup stating user to
enter valid credentials by the application.

<?php

session_start();

error_reporting(0);

include('includes/dbconnection.php');

if(isset($_POST['login']))

$email=$_POST['email'];

$password=md5($_POST['password']);

$query=mysqli_query($con,"select ID from tbluser where Email='$email' &&


Password='$password' ");

$ret=mysqli_fetch_array($query);

if($ret>0){

$_SESSION['detsuid']=$ret['ID'];

header('location:dashboard.php');

else{

$msg="Invalid Details.";

?>

Department of ISE Page 19


18CSL58 Daily expense management system using data stored procedure
4.3.3 Add expense

 Page :Add Expense

 Method: pageload event()

 Description: This method is to load Add missing Person page to web application.

 Method: Add Expense()

 Description: In this method, it captures the values and save the data to database

 Method: Reset()

 Description: This method will clear all the controls of the form
AddExpense is the course of action where the user can input his / her data to the application to
make upload Expense

<?php

session_start();

error_reporting(0);

include('includes/dbconnection.php');

if (strlen($_SESSION['detsuid']==0)) {

header('location:logout.php');

} else{

if(isset($_POST['submit']))

$userid=$_SESSION['detsuid'];

$dateexpense=$_POST['dateexpense'];

$item=$_POST['item'];

$costitem=$_POST['costitem'];

$sel=$_POST['sel'];

$query=mysqli_query($con, "insert into


tblexpense(UserId,ExpenseDate,ExpenseItem,ExpenseCost,category)
value('$userid','$dateexpense','$item','$costitem','$sel')");

if($query){
Department of ISE Page 20
18CSL58 Daily expense management system using data stored procedure
echo "<script>alert('Expense has been added');</script>";

echo "<script>window.location.href='manage-expense.php'</script>";

} else {

echo "<script>alert('Something went wrong. Please try again');</script>";

Department of ISE Page 21


18CSL58 Daily expense management system using data stored procedure
CHAPTER-5 TESTING

5.1 Introduction
Software testing consists of execution of a software component or a system component or a system
component to confirm one or more itemized properties. It helps to point out the extent the system or
software gratifies the necessities specified by user, responds in an indicated way, it have to be installed and
executed in all the envisioned environments.

In our application we have considered various test cases which are pointed out by the required specified by
clients. This application has undergone through unit , integration and system testing cases, The cases test
that we considered are as follow:

Fig 7.1.1 Testing Process

Testing

 The Code testing this stratergy examines the logic of the program. A path is a specific combination
of conditions handled by the program.
 The Specification testing this startagy examines the specification startagy with the program should
do and how it should perform under various conditions.
 Acceptance when the system has nomesure problem with its accuracy the system passes through a
final acceptance test. If the system fulfill all the requirements its is finely acceptable and ready for
operation

System Testing:

System testing is tests the complete system. System testing is carried out after the completion Unit testing
and integration testing. It will test the overall behaviour of the system . It will checks the performance and
functionality of the system.

Department of ISE Page 22


18CSL58 Daily expense management system using data stored procedure

5.2 Unit Test Cases

TestCase Expected Actual


Number Scenario Result Result Status
Registration Testing
Clicking submit System should
without entering alert user to fill Alert "Please
Case 1 details all details fill all details" Pass
Clicking submit System should Alert "Please
without entering alert user to fill fill
Case 2 Username the username Username" Pass
Clicking submit System should
without entering alert user to fill Alert "Please
Case 3 password the password fill Password" Pass
System should
Clicking submit alert user to
without entering enter the email Alert "Please
Case 4 email id id fill email id" Pass
System should
Clicking submit alert user to Alert "Please
without entering enter the Phone fill contact
Case 5 phone number number number" Pass
System should
Clicking submit alert user to fill Alert "Please
by entering wrong valid email fill valid
Case 6 email id address email id" Pass
System should Alert "Please
Clicking submit alert user to fill fill valid
by entering wrong valid phone phone
Case 7 phone number number number" Pass

Login Testing
Alert "Please
Clicking submit System should enter the
without entering alert user to fill username and
Case 8 credentials all details password" Pass
Clicking submit System should Alert "Please
without entering alert user to fill enter the
Case 9 password password data password" Pass
Clicking submit System should Alert "Please
without entering alert user to fill enter the
Case 1o Username username data Username" Pass
Clicking submit System should
entering wrong alert user to fill Alert "Invalid
Case 11 Username all details User" Pass

Department of ISE Page 23


18CSL58 Daily expense management system using data stored procedure
Clicking submit System should
entering wrong alert user to fill Alert "Invalid
Case 12 password all details User" Pass
Clicking submit
entering wrong System should
Username and alert user to fill Alert "Invalid
Case 13 password all details User" Pass

table no.7.2.1 Unit Test cases Table

5.2 Integration Testing


Integration testing is a diploma of software program software software application software
finding out in which character devices are blended and examined as a hard and speedy. The cause
of this degree of finding out is to show faults inside the interplay among included devices. Test
drivers and test stubs are used to assist in Integration Testing.
Integration Test Cases

TestCase
Number Scenario Expected Result Actual Result Status
Service Testing

Using the credentials


Should allow user to User is allowed to
created during account Pass
access page access application
Case 1 creation to login

Updating of the
User is not
username created System should control
allowed to rename Pass
during the registration renaming of username
the username
Case 2 after login

Changing of the
User is not
password created System should allow
allowed to change Fail
during the registration to change
the password
Case 3 process

Table no.7.3.1 IntegrationTest cases Table


 System Testing
System Testing, refers to the manner of checking out a software program utility primarily based
mostly on what its specification says its behavior need to be. In unique, we will growth check
instances based completely totally on the specification of this device's behavior, with out seeing an
implementation of this system.

Department of ISE Page 24


18CSL58 Daily expense management system using data stored procedure

CHAPTER-6 RESULT AND CONCLUSION

6.1 Snapshot

Snapshot 6.1.1 User Register Page : A new user can register to our portal in this page .

Snapshot 6.1.2 User Login Page : Registered User can login into their Portal.

Department of ISE Page 25


18CSL58 Daily expense management system using data stored procedure

Snapshot 6.1.3 User Dashboard : Dashboard gives the brief summery of the User Expenses

Snapshot 6.1.4 User Expense Tracker : User can add Expense and track it according to daily, weekly,
monthly and yearly basis.

Department of ISE Page 26


18CSL58 Daily expense management system using data stored procedure

Snapshot 6.1.5 User Expense Chart: Gives the graphical view of the user’s Expense.

Snapshot 6.2.1 Home Page

Department of ISE Page 27


18CSL58 Daily expense management system using data stored procedure

Snapshot 6.2.2 Admin Login Page : Admin logs in to their portal.

Snapshot 6.2.3 Manage User: Admin can manage user by viewing their details or by removing them.

Department of ISE Page 28


18CSL58 Daily expense management system using data stored procedure

Snapshot 6.2.4 Overall Expense Chart: Gives the graphical view of expenses of all the user.

6.2 Conclusion

Tracking your expenses daily can save your amount, but it can also help you set financial goals for the
future. If you know exactly where your amount is going every month, you can easily see where some
cutbacks and compromises can be made. The project what we have developed is work more efficient than
the other income and expense tracker. The project successfully avoids the manual calculation for avoiding
calculating the income and expense per month. The modules are developed with efficient and also in an
attractive manner.

6.3 Future Enhancement


In the future, The Online Income and Expense Tracker application can be further enhanced to include
following features: The application can be extended to include scanning of bar code on the price tag which
decreases the effort of entering the data in the input fields. Group: Apart from keeping a personal log, we
are planning to extend this system to incorporate a shared expense group.

Department of ISE Page 29


18CSL58 Daily expense management system using data stored procedure

CHAPTER 7 REFERENCES
[1] Palestinian Ministry of Education and Higher Education. Palestinian Higher Education Statistics.

[2] Accreditation and Quality Assurance Committee (AQAC) in Palestine. General Report of Information
Technology and Engineering Higher Education in Palestine. Accreditation and Quality Assurance
Commission (AQAC). Ramallah, Palestine: Palestinian Ministry of Education and Higher Education; 2oo7
Apr.

[3] Engineering Association of Palestine. Current Engineering Statistics Book. Ramallah; 2oo5.

[4] Prados J, Peterson G, Lattuca L. Quality Assurance of Engineering Education Through Accreditation:
The Impact of Engineering Criteria 2ooo and Its Global Influence. Journal of Engineering Education. 2oo5
Jan; 94(1):165–84.

[5] Chen JW, Yen M. Engineering Accreditation: A Foundation for Continuing Quality Improvement. 2oo5
Mar 1–5; Tainan. Exploring Innovation in Education and Research,

[6] Homma H. Accreditation System in Indonesia. JSME news. 2oo4 May; 15(1)

[7] Oberst B, Jones R. International Trends in Engineering Accreditation and Quality Assurance. World
Expertise L.L.C.

Department of ISE Page 30

You might also like