0% found this document useful (1 vote)
3K views46 pages

Mini Project Campus Predictor Report

The document describes a mini project report on "Campus Predictor" submitted by Sahana R and Varsha H G to Visvesvaraya Technological University. It was developed under the guidance of Prof. Ramya I M to fulfill the requirements of the Database Management System laboratory course. The project aims to create a campus management system that can be used by students to check their results and teachers to update student marks. It was developed using PHP for the front-end and MySQL database.

Uploaded by

Harish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
3K views46 pages

Mini Project Campus Predictor Report

The document describes a mini project report on "Campus Predictor" submitted by Sahana R and Varsha H G to Visvesvaraya Technological University. It was developed under the guidance of Prof. Ramya I M to fulfill the requirements of the Database Management System laboratory course. The project aims to create a campus management system that can be used by students to check their results and teachers to update student marks. It was developed using PHP for the front-end and MySQL database.

Uploaded by

Harish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 46

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

BELGAUM-590018, KARNATAKA

DATABASE MANAGEMENT SYSTEM LAB


MINI PROJECT REPORT ON

“CAMPUS PREDICTOR”
Submitted in fulfillment of requirements for the Database Management System Laboratory of

BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
Submitted by
SAHANA R VARSHA H G
(1EW18CS131) (1EW18CS180)
Under the guidance of

Prof. RAMYA I M
Assistant Professor, Dept of CSE

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


EAST WEST INSTITUTE OF TECHNOLOGY BANGLORE-
560091, KARNATAKA.

EAST WEST INSTITUTE OF TECHNOLOGY-BENGALURU-560091


(Affiliated to Visvesvaraya Technological University, Belgaum, Karnataka)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CERTIFICATE

This is to certify that SAHANA R (1EW18CS131) and VARSHA H G (1EW18CS180)


has satisfactorily submitted Database Management System (18CSL58) Mini Project Report
titled “CAMPUS PREDICTOR” in fulfillment of the requirements as prescribed by the
V.T.U for 5th semester, Bachelor of Engineering in “COMPUTER SCIENCE &
ENGINEERING”, during the academic year 2020-21.

…………………………… …………………………
Signature of Guide Signature of HOD
Prof. RAMYA I M Dr. NARASIMHA MURTHY
Assistant Professor, CSE H.O.D, Dept of CSE

1. External Viva:

2. Name of the External Examiner and Signature with date:


DECLARATION

SAHANA.R and VARSHA H G, students of fifth semester Bachelor of Engineering


in the Department of Computer Science and Engineering of East West Institute of
Technology, Bengaluru-560091, hereby declare that the project entitled “CAMPUS
PRDEICTOR” has been carried out by us under the guidance and supervision of Internal
Guide Prof. RAMYA I M, Assistant Professor, Department of Computer Science and
Engineering ,EWIT, Bengaluru submitted in the fulfillment of the requirements for the
course requirements for the award of the degree of Bachelor of Engineering of
Computer Science and Engineering of Visvesvaraya Technological University during
the Academic year 2020-21.

Place: SAHANA.R (1EW18CS131)

Date: VARSHA. H .G(1EW18CS180)

v
ACKNOWLEDGEMENT

The completion of project brings with great sense of satisfaction, but it is never
completed without thanking the persons who all are responsible for its successful completion.

First and foremost we wish to express our deep sincere feelings of gratitude to our Institution,
EAST WEST INSTITUTE OF TECHNOLOGY, for providing us an opportunity to do our
education.
We extend our deep sense of sincere gratitude to Dr. K Chennakesavalu , Principal, East West
Institute of Technology, Bengaluru, for having permitted to carry out the project work
successfully.

We express our heartfelt sincere gratitude to Dr. Narasimha Murthy M S, Professor and Head
of Department of Computer Science and Engineering, East West Institute of Technology,
Bengaluru, for his valuable suggestions and support.

We express our special in-depth, heartfelt, sincere gratitude to project guide Prof. RAMYA
I M , Assistant Professor, Dept. of CS&E , East West Institute of Technology, Bengaluru,
for her constant support.

Finally, We would like to thank all the Teaching, Technical faculty and supporting staff
members of Department of Computer Science and Engineering, East West Institute of
Technology, Bengaluru, for their support.

SAHANA R (1EW18CS131)

VARSHA H G (1EW18CS180)
ABSTRACT

In our project, on "CAMPUS PREDICTOR " we have tried to show how the data/information
in SCHOOLS regarding result is managed. This is just an overview of result management in
Schools. Students provided with subjects, students classes and results and students can check
their marks by entering their roll-id, we can create and manage subject by entering subject name
and subject code and we can also add and manage subject combination just by entering class
and subject and we can also check students admission status by entering their personal details
and at last admin can login using their email and password and this password can be changed
according to their convenience.This project aims at creating a Campus Predictor management
system which can be used by students as well as teachers , for teachers to update the marks of
student and for students to check their result. This software package has been developed using
the powerful coding tools of PHP at Front End and MYSQL(XAMP) server for backend.

v
LIST OF CONTENTS Page no

DECLARATION i
ACKNOWLEDGMENT ii
ABSTRACT iii
LIST OF CONTENTS iv
LIST OF FIGURES v

CHAPTERS:-
CHAPTER 1: Introduction to Database Management System 1
1.1 History of DBMS 2
1.2 Definition 3
1.3 Use of Database 4
1.4 Advantages 5
1.5 Introduction of Campus Predictor 6

CHAPTER 2: Requirement Specification


2.1 Hardware Requirement 7
2.2 Software Requirement 7

CHAPTER 3 : Project Design


3.1 ER-Diagram for Online Hotel Management System 8
3.2 Schema diagram for Online Hotel Management System 9
CHAPTER 4 : Description of Tools and Technologies 10-13
CHAPTER 5 : Implementation and code 14-28
CHAPTER 6 : Snapshots 29-35
CHAPTER 7 : Conclusion
CHAPTER 8 : Future Enhancement
CHAPTER 9 : References
LIST OF FIGURES

Figure No Title Page No

3.1 ER-Diagram of Online Hotel Management System 7-8

3.2 Schema Diagram of Online Hotel Management System 9

SanpShot No Title

6.1 Admin Login

6.2 Dashboard

6.3 Student Classes

6.4 Subjects

6.5 Subject Combination

6.6 Declare Results

6.7 Admin Change Password

v
DBMS Mini Project Campus Predictor

CHAPTER 1:
Introduction to Database ManagementSystem

Formally ,a “Database” refers to a set of related data and the way it is organised .
Access to this data is usually provided by “Database management system”(DBMS)
consisting of a integrated set of computer software that allows the users to interact with one or
more databases and provides access to all of the data contained in the database(although
restrictions may exist that limit access to particular data). The DBMS provides various
functions that allow entry ,storage and retrival of large quantities of information and provides
ways to manage how that information is organised.

Because of the close relationship between them ,the term “database” is often used
casually to refer to both the database and the DBMS used to manipulate it.

Outside the world of professional information technology, the term Database is often
used to refer to any collection of related data (such as spreadsheet or a card index) as however
size and usage requirements typically necessitates use of database management system.

Existing DBMSs provide various functions that allow management of a database and its
data which can be classified into four main functional groups:

• Data Definition :- Creation , modification and removal of definitions that define


organization of data.
• Update :- Insertion , modification and deletion of actual data.
• Retrival :- Providing information in a form directly usable or for further processing by
other applications . The retrived data maybe made available in a form basically
combining existing data from the database.
• Administration :- Registering and monitoring uses, enforcing data security , monitoring
performance , maintaining data integrity , dealing with concurrency control and
recovering information that has been corrected by some event such as unexpected
system failure .

Dept of CS&E,EWIT 2020-21 Page | 1


DBMS Mini Project Campus Predictor

Both the database and its DBMS confirm to the principles of particular database model .
“Database system “ refers collectively to the database model , database management system
and database .

Physically, database servers are dedicated computers that hold the actual databases and run
only the DBMS and related software. Database servers are usually multiprocessor computers,
with generous memory and RAID disk arrays used for stable storage. RAID is used for recovery
of data if any of the disks fail. Hardware database accelerators, connected to one or more
servers via a high-speed channel, are also used in large volume transaction processing
environments.

DBMSs are found at the heart of most database applications. DBMSs maybe built around
a customer multitasking kernel with built in networking support, built modern DBMSs
typically rely on standard operating system to provide these functions.

Since DBMSs comprise a significant market, computer and storage vendors often take into
account DBMS requirements in their own development plans.

Databases and DBMSs can be categorised according to database model(s) that they
support(such as relational or XML, the type(s) of computer they run on “from a server cluster
to a mobile phone “ , the query language(s) used to access the database such as SQL or XQuery)
, and their internal engineering , which effects performance, scalability , resilience and
security.

1.1 History of DBMS:-


The sizes, capabilities and performance of databases and their respective DBMSs have grown
in orders of magnitude. These performances increases where enabled by the technology
progress in the areas of processor computer memory, computer storage and computer networks.
The development of database technology can be divided into three eras based on data model or
structure :Navigational , SQL / relational and post -relational.

Dept of CS&E, EWIT 2020-21 Page | 2


The two main early navigational data models were the hierarchical model and the Codasyl
model (network model) .

The relational model, first proposed in 1970 by Edgar F . Codd , departed from this tradition
by insisting that applications should be searched for data by content , rather than by following
links. The relational model employs sets of ledger-style tables , each used for a different type
of entity. Only in the mid-1980s did computing hardware become powerful enough to allow
the wide development of relational systems (DBMSs plus applications) . By the early 1990s ,
however , relational systems dominated in all large-scale data processing applications and as
of 2018 they remain dominant : IBM DB2 , Oracle , MySQL and Microsoft SQL server are the
most searched DBMS. The dominant database language , standardized SQL for the relational
model , has influenced database languages for other data models. Object databases were
developed in the 1980s to overcome the inconvenience of object-relational impedance
mismatch , which lead to the coining of the term “ post-relational” and also the development
of hybrid object-relational databases .

The next generation of post-relational databases in the late 2000s became known as No
SQL databases , introducing fast key-value stores and document-oriented databases a
completing “ next generation “ known as New SQL databases attempted new
implementations that retained the relational / SQL model while aiming to match the high
performance of No SQL compared to commercially available relational DBMSs .

1.2 Definitions:-

A database management system is a computer-software application that interacts with


end-users, other applications, and the database itself to capture and analyze data. A
generalpurpose DBMS allows the definition, creation, querying, update, and administration of
databases .Well-known-DBMS’s;- include MySQL, PostgreSQL, Enterprise DB ,
MongoDB, MariaDB, Microsoft SQL Server, Oracle, Sybase, SAP HANA, Mem SQL ,
SQLite and IBM DB2.

A database is not generally portable across different DBMSs, but different DBMSs can
interoperate by using standards such as SQL and ODBC or JDBC to allow a single application

Dept of CS&E, EWIT 2020-21 Page|3


DBMS Mini Project Campus Predictor

to work with more than one DBMS. Computer scientists may classify databasemanagement
systems according to the database models that they support; the most popular database systems
since the 1980s have all supported the relational model -generally associated with the SQL
language.

1.3 Uses of Database:-

Applications of Database are many, however some of them are as explained below:

• Databases for Businesses: The business world depends on databases 24 hours a day,
seven days a week. Inventory, order processing, payroll, accounting, shipping and
transportation routing are often tracked within a main database that keeps the company
functioning.

• Databases for Education: From elementary schools to colleges, educational institutions


use databases to keep track of students, grades, transfers, transcripts and other student data.
There are even specialized database packages geared toward schools and college.

• Databases for Non-Profits: Like businesses and educational institutions, non-profit


organizations use systems to track information. Many charities and other non-profit groups use
a database to store details of donations, volunteers, hours served in the community, clients
helped and other information related to the organization.

• Databases for Household and Family Management: The database also has a role in
household and family management. Many people use databases to keep track of family
birthdays, bills and expenses in the home; addresses of friends and relatives and movie/DVD
collections.

• Everyday Uses For Databases: Each time you make a purchase and the sales clerk asks
for your address or ZIP code, your information is kept and stored on a customer database.
These collections of data are used to send mailings of special offers, discounts and other deals.

Dept of CS&E, EWIT 2020-21 Page | 4


1.4 Advantages:-

• An organized and comprehensiveness of recording the result of the firms activities.

• A receiver of data to be used in meeting the information requirement of the MIS users.

• Reduced data redundancy.

• Reduced updating errors and increased consistency.

• Greater data integrity and independence from applications programs.

• Improved data access to users through use of host and query languages.

• Improved data security.

• Reduced data entry, storage, and retrieval costs.

• Facilitated development of new applications program.

• Standard can be enforced: Standardized stored data format is particularly desirable as an old
data to interchange or migration (change) between the system.

• Conflicting requirement can be handled.

Dept of CS&E, EWIT 2020-21 Page|3


DBMS Mini Project Campus Predictor

1.5 Introduction to Campus Predictor:-

The campus predictor application will manage the information about various students
enrolled in this course in different years, the marks obtained by the various students in various
subjects in different semesters. The manual method of students’ academic result processing
was found to be tedious, especially when carried out for a large number of students, this makes
the entire process time-consuming and error prone. Student management system full report,ask
latest student management system project report of the proposed system to generate the above
results. This project is useful for students and institutions for getting the results in simple
manner. The system designed is meant to register students as soon as they have paid their
departmental registration and only then will they be able to view their results. project screen
shot subject management , scheduling exam, result and project report of student management
system. The software will also generate summary report regarding student information,
semester wise marks list and performance reports.

Dept of CS&E,EWIT 2020-21 Page | 6


DBMS Mini Project Campus Predictor

CHAPTER 2:
Requirement Specification

In this section the various requirements that are essential for this project are specified.
These requirements have to be fulfilled for successful execution of the project. The purpose,
scope along with hardware and software requirements is given below:

2.1 HARDWARE REQUIREMENTS:

• Processor : Intel (R) core (TM) i5-1035G1 CPU @ 1.00Ghz 1.19Ghz


• Hard Disk capacity : 64 bit Operating System
• Ram : 4 GB
• Clock speed : 2.40 GHZ

2.2 SOFTWARE REQUIREMENTS:

• Operating system : Windows 10.


• Front end : Css , Js , PHP
• Back end : XAMPP server
• Database : MYSQL

Dept of CS&E,EWIT 2020-21 Page7


DBMS Mini Project Campus Predictor

CHAPTER 3:
Project Design

F_name
Cname_nume
Class_name
ric
S_check_result
Roll_id
password
section
DOB
Email
Email gender

crea crea
student admin tes Student_class
tes

views

create Subject_combination
s

C_name
result
subject
Science S_name
Admin_change_password

music
C_name
maths S_name S_code

Current_pa
F_name Email
ssword
eme
english
New_password

3.1 ER Diagram of Campus Predictor

Dept of CS&E,EWIT 2020-21 Page | 8


DBMS Mini Project Campus Predictor

Admin_login
Email Password

Student_classes
Class_name Classname_numeric section

Subjects
Subject_name Subject_code

Subject_combination
Class_name Subject_name

students
Full_name Roll_id Email Gender DOB

Results
Class_name Full_name English Maths Music science

Admin_change_password
Email Current_password New_password

3.2 Schema diagram for Campus Predictor(Result management system)

Dept of CS&E,EWIT 2020-21 Page9


DBMS Mini Project Campus Predictor

CHAPTER 4 :
Description of Tools and Technology

. XAMPP Server:-
XAMPP stands for Cross-Platform (X), Apache(A), MariaDB(M) , PHP(P)and Perl(P).

Since XAMPP is simple , lightweight Apache .Distribution it is extremely easy for developers
to create a local web

Server for testing and deployment purposes . Everything you needed is to


setup a web server– server application (Apache), database
(MariaDB), and scripting language (PHP). XAMPP work sequally well On
Linux , Mac, and Windows.

. HTML:-
HTML stands for [Hypertext Mark-up Language], it is the standard mark-up Language
for creating web-pages and web-applications . With Cascading Style Sheets(CSS ) and Java
Script it forms a triad of cornerstone technologies for the World Wide Web.

Web-browsers receive HTML documents from a web server or from local storage and Render
them into multimedia web-pages .HTML describes the structure of a web-page Semantically
and originally includes for the appearance of the document.
HTML element share the building blocks of HTML pages , with HTML constructs,
Images and other objects ,such as interactive forms ,may be embedded into the Rendered
page.

Dept of CS&E,EWIT 2020-21 Page | 10


DBMS Mini Project Campus Predictor

It provide same means to create structured documents by denoting structural

Semantics for text such as headings ,paragraphs ,lists, links ,quotes and other items . HTML
elements are delineated by tags , written using angle brackets .Browsers do not Display the
HTML tags ,but use them to interpret the content of the page.

. Cascading Style Sheets (CSS):-


It is a style sheet language used for describing the presentation of a document written
in a mark-up language .Although most often used to set the visual style of web-pages and user
interfaces written in HTML ,the language can be applied to any document, including plain
XML , SVG and XUL ,and is applicable to rendering in speech ,or on other media .Along with
HTML and Java Script ,CSS is a cornerstone technology used by most websites to create
visually engaging web-pages ,user interfaces for web applications ,and user interfaces for many
mobile applications.
CSS is designed primarily to enable these parathion of presentation and content ,

Including aspects such as the layout , colors ,and fonts . This separation can improve

Content accessibility ,provide more flexibility and control in the specification of

Presentation characteristics , enable multiple HTML pages to share formatting by

Specifying the relevant CSS in a separate . CSS file ,and reduce complexity and repetition

In the structural content. Separation of formatting and content makes it possible to Present
the same mark up page in different styles.

Dept of CS&E,EWIT 2020-21 Page11


DBMS Mini Project Campus Predictor

. PHP:-
It is a server-side scripting language designed primarily for web-development but ,also
used as a general-purpose programming language.

PHP was originally created by RasmusLerdorf in 1994 ,the PHP reference


Implementation is now produced by The PHP Development Team.
PHP stands for the acronym :[Hyper text Pre-processor]. PHP code may be embedded
into HTML or HTML 5 mark-up, or it can be 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 the


web server or as a Common Gateway Interface(CGI)executable. The webserver software
combines the results of the interpreted and executed PHP code , which may be any type of data
,including images ,with the generated webpage.

PHP code may also be executed with a command-line interface(CLI) and can be used
to implement stand-alone graphical applications.
The standard PHP interpreter ,powered by the ZendEngine ,is free software released
under the PHP License . PHP has been widely ported and can be deployed on Most web
servers on almost every operating system and platform , free of charge.

Dept of CS&E,EWIT 2020-21 Page | 12


DBMS Mini Project Campus Predictor

. My SQL SERVER:-
It is an open-source relational database management system (RDBMS).

Its name is a Combination of “My” , the name of co-founder Michael Widenius's daughter ,
and "SQL", the abbreviation for Structured Query Language . The MySQL development
project as made its source code available under the terms of the GNU General Public License
,as well as under a variety of proprietary agreements.

My SQL was owned and sponsored by a single for-profit firm ,the Swedish Company
My SQL AB ,now owned by Oracle Corporation. For proprietary use , several Paid editions
are available ,and offer additional functionality.

The My SQL server package will install the MySQL database server which can interact
with using a My SQL client . User can use the My SQL client to send commands to any MySQL
server ;on are mote computer The My SQL server is used to persist the data and provide a
query interface for it (SQL) . The My SQL client’s purpose is to allow you to use that query
interface. The client package also comes with utilities that allow ‘s you to easily backup/ restore
data and administer the server.

Dept of CS&E,EWIT 2020-21 Page13


DBMS Mini Project Campus Predictor

CHAPTER 5 :

Implementation and Code


5.1Admin Login Page
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if($_SESSION['alogin']!=''){
$_SESSION['alogin']='';
}
if(isset($_POST['login']))
{
$uname=$_POST['username'];
$password=md5($_POST['password']);
$sql ="SELECT UserName,Password FROM admin WHERE UserName=:uname and
Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':uname', $uname, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
$_SESSION['alogin']=$_POST['username'];
echo "<script type='text/javascript'> document.location = 'dashboard.php'; </script>";
} else{

Dept of CS&E,EWIT 2020-21 Page | 14


DBMS Mini Project Campus Predictor

echo "<script>alert('Invalid Details');</script>";

?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Admin Login</title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >
<link rel="stylesheet" href="css/prism/prism.css" media="screen" > <!-- USED FOR
DEMO HELP - YOU CAN REMOVE IT -->
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="">
<div class="main-wrapper">

<div class="">
<div class="row">

Dept of CS&E,EWIT 2020-21 Page | 15


DBMS Mini Project Campus Predictor

<h1 align="center">CAMPUS PREDICTOR</h1>


<div class="col-lg-6 visible-lg-block">

<section class="section">
<div class="row mt-40">
<div class="col-md-10 col-md-offset-1 pt-50">

<div class="row mt-30 ">


<div class="col-md-11">
<div class="panel">
<div class="panel-heading">
<div class="panel-title text-center">
<h4>For Students</h4>
</div>
</div>
<div class="panel-body p-20">

<div class="section-title">
<p class="sub-title">Campus Predictor</p>
</div>

<form class="form-horizontal" method="post">


<div class="form-group">
<label for="inputEmail3" class="col-sm-6 control-
label">Search your result</label>
<div class="col-sm-6">
<a href="find-result.php">click here</a>

Dept of CS&E,EWIT 2020-21 Page | 16


DBMS Mini Project Campus Predictor

</div>
</div>
</form>
</div>
</div>
<!-- /.panel -->

</div>
<!-- /.col-md-11 -->
</div>
<!-- /.row -->
</div>
<!-- /.col-md-12 -->
</div>
<!-- /.row -->
</section>
</div>
<div class="col-lg-6">
<section class="section">
<div class="row mt-40">
<div class="col-md-10 col-md-offset-1 pt-50">

<div class="row mt-30 ">


<div class="col-md-11">
<div class="panel">
<div class="panel-heading">
<div class="panel-title text-center">

Dept of CS&E,EWIT 2020-21 Page | 17


DBMS Mini Project Campus Predictor

<h4>Admin Login</h4>
</div>
</div>
<div class="panel-body p-20">

<div class="section-title">
<p class="sub-title">Campus Predictor</p>
</div>

<form class="form-horizontal" method="post">


<div class="form-group">
<label for="inputEmail3" class="col-sm-2
control-label">Email</label>
<div class="col-sm-10">
<input type="text" name="username"
class="form-control" id="inputEmail3" placeholder="UserName">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2
control-label">Password</label>
<div class="col-sm-10">
<input type="password"
name="password" class="form-control" id="inputPassword3" placeholder="Password">
</div>
</div>

<div class="form-group mt-20">

Dept of CS&E,EWIT 2020-21 Page | 18


DBMS Mini Project Campus Predictor

<div class="col-sm-offset-2 col-sm-10">

<button type="submit" name="login"


class="btn btn-success btn-labeled pull-right">Sign in<span class="btn-label btn-label-
right"><i class="fa fa-check"></i></span></button>
</div>
</div>
</form>
</div>
</div>
<!-- /.panel -->

</div>
<!-- /.col-md-11 -->
</div>
<!-- /.row -->
</div>
<!-- /.col-md-12 -->
</div>
<!-- /.row -->
</section>

</div>
<!-- /.col-md-6 -->
</div>
<!-- /.row -->
</div>
<!-- /. -->

Dept of CS&E,EWIT 2020-21 Page | 19


DBMS Mini Project Campus Predictor

</div>
<!-- /.main-wrapper -->

<!-- ========== COMMON JS FILES ========== -->


<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/jquery-ui/jquery-ui.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/main.js"></script>
<script>
$(function(){

});
</script>
</body>
</html>
5.2 Manage Subject Combination
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{

Dept of CS&E,EWIT 2020-21 Page | 20


DBMS Mini Project Campus Predictor

header("Location: index.php");
}
else{
// for activate Subject
if(isset($_GET['acid']))
{
$acid=intval($_GET['acid']);
$status=1;
$sql="update tblsubjectcombination set status=:status where id=:acid ";
$query = $dbh->prepare($sql);
$query->bindParam(':acid',$acid,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$msg="Subject Activate successfully";
}

// for Deactivate Subject


if(isset($_GET['did']))
{
$did=intval($_GET['did']);
$status=0;
$sql="update tblsubjectcombination set status=:status where id=:did ";
$query = $dbh->prepare($sql);
$query->bindParam(':did',$did,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$msg="Subject Deactivate successfully";

Dept of CS&E,EWIT 2020-21 Page | 21


DBMS Mini Project Campus Predictor

}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Admin Manage Subjects Combination</title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >
<link rel="stylesheet" href="css/prism/prism.css" media="screen" > <!-- USED FOR
DEMO HELP - YOU CAN REMOVE IT -->
<link rel="stylesheet" type="text/css" href="js/DataTables/datatables.min.css"/>
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}

Dept of CS&E,EWIT 2020-21 Page | 22


DBMS Mini Project Campus Predictor

.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">

<!-- ========== TOP NAVBAR ========== -->


<?php include('includes/topbar.php');?>
<div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?>

<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Manage Subjects Combination</h2>
</div>

<!-- /.col-md-6 text-right -->

Dept of CS&E,EWIT 2020-21 Page | 23


DBMS Mini Project Campus Predictor

</div>
<!-- /.row -->
<div class="row breadcrumb-div">
<div class="col-md-6">
<ul class="breadcrumb">
<li><a href="dashboard.php"><i
class="fa fa-home"></i> Home</a></li>
<li> Subjects</li>
<li class="active">Manage
Subjects Combination</li>
</ul>
</div>

</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->

<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">

<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<h5>View Subjects Combination Info</h5>

Dept of CS&E,EWIT 2020-21 Page | 24


DBMS Mini Project Campus Predictor

</div>
</div>
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
<strong>Well done!</strong><?php echo htmlentities($msg); ?>
</div><?php }
else if($error){?>
<div class="alert alert-danger left-icon-alert" role="alert">
<strong>Oh snap!</strong> <?php echo htmlentities($error); ?>
</div>
<?php } ?>
<div class="panel-body p-20">

<table id="example" class="display table table-striped table-


bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>#</th>
<th>Class and Section</th>
<th>Subject </th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>#</th>
<th>Class and Section</th>

Dept of CS&E,EWIT 2020-21 Page | 25


DBMS Mini Project Campus Predictor

<th>Subject </th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php $sql = "SELECT
tblclasses.ClassName,tblclasses.Section,tblsubjects.SubjectName,tblsubjectcombination.id as
scid,tblsubjectcombination.status from tblsubjectcombination join tblclasses on
tblclasses.id=tblsubjectcombination.ClassId join tblsubjects on
tblsubjects.id=tblsubjectcombination.SubjectId";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
<td><?php echo htmlentities($cnt);?></td>
<td><?php echo htmlentities($result->ClassName);?>
&nbsp; Section-<?php echo htmlentities($result->Section);?></td>
<td><?php echo htmlentities($result-
>SubjectName);?></td>
<td><?php $stts=$result->status;
if($stts=='0')
{
echo htmlentities('Inactive');

Dept of CS&E,EWIT 2020-21 Page | 26


DBMS Mini Project Campus Predictor

}
else
{
echo htmlentities('Active');
}
?></td>

<td>
<?php if($stts=='0')
{ ?>
<a href="manage-subjectcombination.php?acid=<?php echo htmlentities($result->scid);?>"
onclick="confirm('do you really want to ativate this subject');"><i class="fa fa-check"
title="Acticvate Record"></i> </a><?php } else {?>

<a href="manage-subjectcombination.php?did=<?php echo htmlentities($result->scid);?>"


onclick="confirm('do you really want to deativate this subject');"><i class="fa fa-times"
title="Deactivate Record"></i> </a>
<?php }?>
</td>
</tr>
<?php $cnt=$cnt+1;}} ?>
</tbody>
</table>
<!-- /.col-md-12 -->
</div>
</div>
</div>
<!-- /.col-md-6 -->

Dept of CS&E,EWIT 2020-21 Page | 27


DBMS Mini Project Campus Predictor

</div>
<!-- /.col-md-12 -->
</div>
</div>
<!-- /.panel -->
</div>
<!-- /.col-md-6 -->

</div>
<!-- /.row -->

</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->

</div>
<!-- /.main-page -->
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->

</div>
<script src="js/jquery/jquery-2.2.4.min.js"></script>

Dept of CS&E,EWIT 2020-21 Page | 28


DBMS Mini Project Campus Predictor

<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/DataTables/datatables.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$('#example').DataTable();

$('#example2').DataTable( {
"scrollY": "300px",
"scrollCollapse": true,
"paging": false
} );

$('#example3').DataTable();
});
</script>
</body>
</html>
<?php } ?>

Dept of CS&E,EWIT 2020-21 Page | 29


DBMS Mini Project Campus Predictor

CHAPTER 6 :
SnapShots

6.1 Admin Login Page

6.2 Dashboard

Dept of CS&E,EWIT 2020-21 Page | 30


DBMS Mini Project Campus Predictor

6.3 Student Classes

Dept of CS&E,EWIT 2020-21 Pag31


DBMS Mini Project Campus Predictor

6.4 Subjects

Dept of CS&E,EWIT 2020-21 Page | 32


6.5 Subject Combination

Dept of CS&E,EWIT 2020-21 Page | 33


DBMS Mini Project Campus Predictor

6.6 Student Admission

6.6 Declare Results

Dept of CS&E,EWIT 2020-21 Page | 34


6.7 Admission Change Password

Dept of CS&E,EWIT 2020-21 Page | 35


Conclusion

• This project is designed to meet the requirements of Online Student Result Management
System i.e Campus Predictor.

• It has been developed in PHP Servers using JavaScript, HTML and CSS keeping in
mind the specifications of the system.

• For designing the system we have used simple data flow diagrams.

• This project uses MySQL database for storing the data.

• Overall the project teaches us the essential skills like:

 Using system analysis and design techniques like data flow diagram in designing the
system.

 Understanding the database handling and query processing.


Future Enhancement

This project can be used in the schools after adding some more useful modules in the
project for which results can be viewed efficiently and easy Admin access and management.
Atmost care and back-up procedures must be established to ensure 100% successful
implementation of the computerized hotel system.In case of system failure, the organization
should be in a position to process the transaction with another organization or if the worst
comes to the worst, it should be in a position to complete it manually.
References

Books reference :
1. Fundamentals of Database System - Ramez Elmasri, Shamkant Navathe 2017[7thEdition]

2. Database Management system - Ramakrishnan and Gehrke 2014[3rd Edition] .

3. JavaScript The Complete Reference - Thomas.A.Powell, Clever Programmer.

4. MySql The Complete Reference - Vikram Vaswani 2004 .

5. HTML & CSS - Clever Programmer.

6. PHP The joy of PHP – Alan Forbes.

URL reference:

1. www.w3schools.com

2. www.tutorialspoint.com

3. www.stackoverflow.com

You might also like