Professional Documents
Culture Documents
Bachelor of Engineering
In
Computer Science and Engineering
Submitted by
Ronik Bakshi
1BG19CS129
2021-22
An Autonomous Institution under VTU
Approved by AICTE, Accredited as grade A Institution by NAAC. All eligible branches – CSE, ECE,
EEE, ISE & Mech. Engg. are Accredited by NBA for academic years 2018-19 to 2021-22 &
valid upto 30.06.2022
URL: www.bnmit.org
Department of Computer Science and Engineering
CERTIFICATE
This is to certify that the Mini Project entitled Criminal Management System by Mr.
RONIK BAKSHI USN 1BG19CS129 a bonafide student of V Semester B.E., B.N.M
Institute of Technology in partial fulfillment for the Bachelor of Engineering in
COMPUTERSCIENCE AND ENGINEERING of the Visvesvaraya Technological
University, Belagavi during the year 2021-22. It is certified that all corrections /
suggestions indicated for Internal Assessment have been incorporated in the report. The
Project report has been approved as it satisfies the academic requirements in respect of
Database Management System with Mini Project Laboratory prescribed for the said
Degree
Crime is a very old concept and it is transmitted to the society from generation to generation. Crime
produces law and order situation. It is a social evil. It is generated by the society and the society
also suffers a lot because of crime committed by its members. The rising wave of crime has caused
alarm in the public.This project is aimed at the implementation of Criminal data/records
Management System. It will be a database ystem in which the police will keep the record of
criminals who have been arrested, to be arrested, or escaped. This will help the police department
in enhanced management of information. The main entities in the whole process include; the
petitioner (the person who files a First Incident Report (FIR)), victim, accused or criminal, case,
and investigating officer.The system at any point of time can provide the details of existing charge
sheets and their statuses. The system will provide the details of the police station, the employees,
the wanted criminal details, details of victims and the registered FIR’s, evidence and their sequence
ACKNOWLEDGEMENT
The completion of this project brings with a sense of satisfaction, but it is never complete without
thanking the persons responsible for its successful completion.
I take this opportunity to express our profound gratitude to Shri. Narayan Rao R Maanay,
Secretary, BNMIT, Bengaluru for his constant support and encouragement.
I would like to express my special thanks to Prof. T. J. Rama Murthy, Director, BNMIT,
Bengaluruand S Y Kulkarni, Additional Director, BNMIT, Bengaluru for their constant guidance
towards our goals and professions.
I extend my deep sense of sincere gratitude to Dr. Krishnamurthy G.N, Principal, BNMIT,
Bengaluru, for providing us the facilities required for the project.
I would also like to thank Prof Eishwar Maanay, Dean Administration, BNMIT, Bengaluru, for
providing us useful suggestions required for the project.
I express my in-depth, heartfelt, sincere gratitude to Dr. Sahana D. Gowda, Professor and H.O.D,
Department of Computer Science and Engineering, BNMIT, Bengaluru, for her valuable
suggestions and support.
I extend my heartfelt, sincere gratitude to Prof. Kavya D N, Assistant Professor, Department of
Computer Science and Engineering, BNMIT, Bengaluru, for completion of the project.
Finally, I would like to thank all the faculty members of Department of Computer Science and
Engineering, BNMIT, Bengaluru, for their support. I would like to thank our family and friends
for their unfailing moral support and encouragement.
Ronik Bakshi
1BG19CS129
TABLE OF CONTENTS
CONTENTS Page No
ABSTRACT I
ACKNOWLDEGEMENT II
1. INTRODUCTION
1.1 Overview of Database Management Systems 1
1.2 Problem statement 2
1.3 Objectives 2
1.4 Dataset Description 2
2. SYSTEM REQUIREMENTS
2.1 Software & Hardware 4
3. SYSTEM DESIGN
3.1 E R Diagram 5
3.2 Schema Diagram 6
3.3 Overview of GUI 7
4. IMPLEMENTATION
4.1 Table creation 8
4.2 Description of Table 11
4.3 Populated Tables 14
4.4 SQL Triggers & Stored Procedures 18
4.5 Database connectivity 21
4.6 Modules 22
5. RESULTS 24
6. CONCLUSION & FUTURE ENHANCEMENTS 32
Chapter 1
INTRODUCTION
1.1 Overview of Database Management System
A Database is a collection of related data organized in a way that data can be
easily accessed, managed and updated. Any piece of information can be a data,
for example name of your school. Database is actually a place where related
piece of informationis stored and various operations can be performed on it. A
DBMS is a software that allows creation, definition and manipulation of
database. DBMS is actually a tool used to perform any kind of operation on data
in database. DBMS also provides protection and security to database. It maintains
data consistency in case of multiple users. Here are some examples of popular
DBMS, Sql, Oracle, Sybase, Microsoft Access and IBM DB2.
The database system can be divided into four components:
● The database system can be divided into System developer and End users.
Database application: Database application may be Personal,
Departmental,Enterprise and Internal.
● DBMS: Software that allow users to define, create and manages
databaseaccess, Ex: Sql, Oracle etc.
● Database: Collection of logical data.
Advantages of DBMS:
● Segregation of application program
● Minimal data duplicity
● Reduced development time and maintenance need
● Easy retrieval of data
1.2 Objective
The objective of this project is to:
Software Configuration:
Operating system: Windows 10 ,64-bit
Front end: Html, CSS, JavaScript
Server side language: Php
Back end: MySQL
Web server: Apache
Browser: Chrome
Application software: XAMP
Hardware Configuration:
Processor: Intel Core i7
RAM: 8 GB
Hard disk: 1TB
Chapter 4
IMPLEMENTATION
1.1 Table Creation
(
`A_EMAIL` varchar(20) NOT NULL,
`A_PSWD` varchar(10) NOT NULL
);
(
`CRIME_ID` varchar(255) NOT NULL,
‘CRIME_NAME’ varchar(50) DEFAULT
NULL
);
(
`C_ID` int(11) NOT NULL,
`C_AGE` int(3) NOT NULL,
`C_GENDER` varchar(7) NOT NULL,
`C_ADDRESS` varchar(20) NOT NULL,
`OFF_ID` int(10) DEFAULT NULL,
`FIR_NO` int(5) NOT NULL
);
(
`NO.` int(5) NOT NULL,
`CRIMINAL_ID` int(10) NOT NULL,
(
`FIR_NO` int(6) NOT NULL,
`C_NAME` varchar(20) NOT NULL,
`PHOTO` varchar(1000) DEFAULT NULL,
`CRIME_TIME` datetime(6) DEFAULT NULL,
`CRIME_SCENE` varchar(100) DEFAULT NULL,
`CRIME_DESC` varchar(500) DEFAULT NULL,
`FIR_DATE` date NOT NULL DEFAULT current_timestamp(),
`OFFICER_ID` int(5) DEFAULT NULL,`STATUS` varchar(50) NOT NULL
);
(
`OFF_ID` int(10) NOT NULL,
`OFF_NAME` varchar(20) DEFAULT NULL,
`EMAIL` varchar(20) NOT NULL,
(
`STN_ID` int(10) NOT NULL,
`STN_NAME` varchar(20) NOT NULL
);
(
`CID` int(10) NOT NULL,
`CRIME_IDS` varchar(200) NOT NULL
);
(
`F_NO` int(20) NOT NULL,
`I_NAME` varchar(25) NOT NULL,
`I_ADDRESS` varchar(50) NOT NULL,
`I_NUMBER` int(15) NOT NULL
);
(
`OFFID` int(20) NOT NULL,
`STN_ID` int(20) NOT NULL
);
In sql we can use the command “desc table_name” or “describe table_name” to describe
the list of column definitions for the specified table. We obtain information such as
column name, whether the column allows NULL or not and the datatype of the column.
The following figures show the description of all the tables used in this system.
Desc admin;
Desc crime;
Desc criminal;
Desc crminallog;
Desc pos;
The SELECT statement is used to select data from a database. The data returned is
stored in a result table, called the result-set. We can use the command “select * from
table_name” to obtain all the values of the table. The following figures show the values
of each table.
4.4.A Trigger
A stored procedure is nothing more than prepared SQL code that the
developer saves so the application can reuse the code over and over again.
So if the developer thinks about a query that you write over and over again,
instead of having to write that query each time you would save it as a stored
procedure and then just call the stored procedure to executethe SQL code
that you saved as part of the stored procedure.
<?php
session_start()
//1. Create a database connection
//2. Select a database to use
$servername = “localhost”;
$uname = “root”;
$pass = “”;
$db = “sql_project”;
$conn = mysqli_connect($servername,$uname,$pass,$db);
If(!$conn) {
Die(“Connection failed”);
}
//3. Perform database query
$qry = “Select * from users”;
If(mysql_query($qry,$conn)
echo “Rows selected”;
$result = mysqli_query($conn,$qry);
4.6 Modules
1.Admin login:-
• Dashboard:- Admin can have a look at the number of FIR, criminals, police
officers, police stations
• Police stations:- Admin can register a new Police station and can view the
present number of police stations
• Police officers:- Admin can register a new Police officer and can view the
present number of police officers
• View Criminal:- Admin can view the data of the criminals
• View FIR:- Admin can view the number of FIR
2. Police login:-
START
Police Admin
login login
Database
Home page:
This page provides option to choose for user login or administrator login.
This page lets new users to register and existing users to login.
FIR Page:
6.1 Conclusion
The CRIMINAL DATA MANAGEMENT SYSTEM developed here is a
significant improvement over the manual system which requires a lot of manual
work. It also reduces the paperwork to a great extent.
This system not only helps countless officers but also increases the speed of all
Processes involved, this is very important as it helps to solve cases quickly and
provide justice. It can help in digitizing all the information so that it isn’t lost in
the files. Backlog of cases will be reduced significantly. The system developed
here was thoroughly checked and tested by the team and it has proved to be very
efficient.
The system can be further enhanced according to the needs of the staff and will
stay up to date with the newest technology and features.
Feedback from the users will be used to improve the system as and when
required.