Likhith P Srms Report

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 43

DBMS Mini Project Report December 30, 1899

CHAPTER 1: INTRODUCTION TO SRMS


1.1 Introduction of Student Result Management System
The “Student Result Management System” has been developed to override the
problems prevailing in the practicing manual system. This software is supported to eliminate
and, in some cases, reduce the hardships faced by this existing system. Moreover, this system
is designed for need for the colleges to carry out operations in a smooth and effective manner.
Every organization, whether big or small, has challenges to overcome and managing the
information of Result, Student, Class, Subject, Semester.
The application is reduced as much as possible to avoid errors while entering the data. It also
provides error message while entering invalid data. No formal knowledge is needed for the
use to this system. Thus, by this all it proves it is user-friendly.
Student Result Management System, as described above, can lead to error free, secure,
reliable, and fast management system. It can assist the user to concentrate on their other
activities rather to concentrate on the record keeping. Thus, it will help organizations in better
utilization of the resources.

OBJECTIVES
 To reduce wasting of time.
 To reduce paper work.
 To reduce effort of teachers.
 To increase security.
 To show results online from anywhere.
 To simplify whole result management system.

1.2 INTRODUCTION OF DBMS

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

DEPARTMENT OF ISE, EWIT 2022-23 Page | 1


DBMS Mini Project Report December 30, 1899

functions that allow entry, storage, and retrieval 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.

• Retrieval: - Providing information in a form directly usable or for further processing


by other applications. The retrieved data may be 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 concurrence control and recovering
information that has been corrected by some event such as unexpected system failure. 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.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 2


DBMS Mini Project Report December 30, 1899

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.2 HISTORY OF DBMS

The sizes, capabilities and performance of databases and their respective DBMSs
have grown in orders of magnitude. These performances increase 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.
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 set 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 DBMS.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 3


DBMS Mini Project Report December 30, 1899

1.4 DEFINITIONS

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


end-users, other applications, and the database itself to capture and analyse data. A general-
purpose 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 to work with more than one DBMS. Computer scientists may classify database
management 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.5 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 is 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.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 4


DBMS Mini Project Report December 30, 1899

1.6 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 systems.

• Conflicting requirement can be handled.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 5


DBMS Mini Project Report December 30, 1899

CHAPTER 2: REQUIREMENTS 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:

SYSTEM REQUIREMENTS

2.1 HARDWARE REQUIREMENTS:

 Processor : Intel R core TM i3-7 100u cpu

 RAM : 4 GB

 Hard disk capacity : 64-bit Operating System

 Clock Speed : 2.40 GHZ

2.2 SOFTWARE REQUIREMENTS:

 Operating System : Windows 10

 Front End : HTML, CSS, JS

 Back End : PHP

 Database : MYSQL (Install XAMPP)

DEPARTMENT OF ISE, EWIT 2022-23 Page | 6


DBMS Mini Project Report December 30, 1899

CHAPTER 3:
DESCRIPTION OF TOOLS AND TECHNOLOGIES
 PHP: -
PHP is now officially known as “PHP: Hypertext Pre-processor”. It is a server-side
scripting language usually written in an HTML context. Unlike an ordinary HTML page, a
PHP script is not sent directly to a client by the server; instead, it is parsed by the PHP binary
or module, which is server-side installed. HTML elements in the script are left alone, but
PHP code is interpreted and executed. PHP code in a script can query databases, create
images, read and write files, talk to remote servers – the possibilities is endless. The output
from PHP code is combined with the HTML in the script and the result sent to the user’s
web-browser, therefore it can never tell the user whether the web-server uses PHP or not,
because the entire browser sees is HTML. PHP’s support for Apache and MySQL further
increases its popularity. Apache is now the most used web-server in the world, and PHP can
be compiled as an Apache module. MySQL is a powerful free SQL database, and PHP
provides a comprehensive set of functions for working with it. The combination of Apache,
MySQL and PHP is all but unbeatable. That doesn’t mean that PHP cannot work in other
environments or with other tools. In fact, PHP supports an extensive list of databases and
web-servers. While in the mid-1990s it was ok to build sites, even relatively large sites, with
hundreds of individual hard-coded HTML pages, today’s webmasters are making the most of
the power of databases to manage their content more effectively and to personalize their sites
according to individual user preferences.

Unique Features
If you are familiar with other server-side language like ASP.NET or JSP you might be
wondering what makes PHP so special, or so different from these competing alternatives
well, here are some reasons:

1. Performance
2. Portability (Platform Independent)
3. Ease Of Use
4. Open Source
5. Third-Party Application Support
6. Community Support

DEPARTMENT OF ISE, EWIT 2022-23 Page | 7


DBMS Mini Project Report December 30, 1899

Reasons for using PHP: There are some indisputable great reasons to work with PHP. As
an open-source product, PHP is well supported by a talented production team and a
committed user community. Furthermore, PHP can be run on all the major operating
systems with most servers.

Basic PHP Syntax: a PHP scripting block always starts with a PHP scripting block can be
placed anywhere in the document. On servers with shorthand support enabled you can start
a scripting block with. However, for maximum compatibility, we recommend that you use
the standard form (<?php) rather than the shorthand form. A PHP file normally contains
HTML tags, just like an HTML file, and some PHP scripting code.

PHP Server
The PHP Community Provides Some types of Software Server solution under The
GNU (General Public License).

These are the following:


1. WAMP Server
2. LAMP Server
3. MAMP Server
4. XAMPP Server
All these types of software automatic configure inside operating system after installation it
having PHP, MySQL, Apache, and operating system base configuration file, it doesn’t
need to configure manually.

 HTML 5: -
HTML5 will be the new standard for HTML. The previous version of HTML,
HTML 4.01, came in 1999. The web has changed a lot since then. HTML5 is still a work
in progress. However, the major browsers support many of the new HTML5 elements and
APIs. HTML5 is cooperation between the World Wide Web Consortium (W3C) and the
Web Hypertext Application Technology Working Group (WHATWG).In 2006, they
decided to cooperate and create a new version of HTML. Some rules for HTML5 were
established: a) New features should be based on HTML, CSS, DOM, and JavaScript. b)
Reduce the need for external plug-ins (like Flash). c) better error handling. d) More
markup to replace scripting. e) HTML5 should be device independent. f) The
development process should be visible to the public.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 8


DBMS Mini Project Report December 30, 1899

STRUCTURE OF HTML

HTML elements perform a defined task. HTML uses two types of elements

 Empty Tags
 Container Tags

These tags differ because of what they represent. Empty tags represent formatting
constricts such as line breaks and horizontal rules. Container tags define a section of text,
formats, and dot all of the selected text. A container tag has both a beginning and an
ending.
HTML LAYOUT:

An HTML document consists of text, which comprises the content of the document
and tags, which, defines the structure, and appearance of the document. The structure of
an HTML document is simple, consists of outer.

<HTML>tag enclosing the document header and body

<HTML>

<HEAD>

<TITLE>the title of HTML document</TITLE>

</HEAD>

<BODY>

This is where the actual HTML documents

Text lies, which is displayed in the browser

</BODY>

</HTML>

Each document has a head and body delimited by the <HEAD> and <BODY> tag. The
head is where you give your HTML document a title and where you indicate other
parameters the browser may use when displaying the document. This includes the text for
displaying the text. Tag also references special and indicates the hot spots that link your
document to other documents.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 9


DBMS Mini Project Report December 30, 1899

HTML FORMS:

Creating a form usually involves two independent steps: Creating the layout for the
form itself and then writing a script program on the server side to process the formation
you get back from a form.

To create a form, you use the <FORM> tag. Inside the opening and closing FORM tags
are each of the individual form elements plus any other HTML content to create a layout
for that form.

The opening tag of the FORM element usually includes the attributes: METHOD and
ACTION. The METHOD attributes can be either GET or POST which determines how
your form data is sent to the script to process it.

The ACTION attribute is a pointer to the script that processes the form on the server side.
The ACTION can be included by a relative path or by a full URL to a script on your
server or somewhere else. For example, the following <FORM> tag would call a script
called form-name in cgi-bin directory on server www.myservser.com

<FORM Method= post action=http://www.mytservser.com/cgi-bin/form-name.pl>

……………….

</FORM>

 CSS: -

CSS tutorial or CSS 3 tutorial provides basic and advanced concepts of CSS
technology. Our CSS tutorial is developed for beginners and professionals. The major
points of CSS are given below:
a) CSS stands for Cascading Style Sheet.
b) CSS is used to design HTML tags.
c) CSS is a widely used language on the web.
d) HTML, CSS and JavaScript are used for web designing.

It helps the web designers to apply style on HTML tags. Cascading Style Sheets (CSS) is
a style sheet language used for describing the look and formatting of a document written

DEPARTMENT OF ISE, EWIT 2022-23 Page | 10


DBMS Mini Project Report December 30, 1899

in a markup language. While most often used to style web pages and user interfaces
written in HTML and XHTML, the language can be applied to any kind of XML
document, including plain XML, SVG and XUL. CSS is a cornerstone specification of
the web and almost all web pages use CSS style sheets to describe their presentation.

 Client-side Script (JAVASCRIPT):-


JavaScript (JS) is a dynamic computer programming language. It is most
commonly used as part of web browsers, whose implementations allow client-side scripts
to interact with the user, control the browser, communicate asynchronously, and alter the
document content that is displayed. It is also being used in server-side network
programming (with Node.js), game development and the creation of desktop and mobile
applications. JavaScript is a prototype-based scripting language with dynamic typing and
has first-class functions. Its syntax was influenced by C. JavaScript copies many names
and naming conventions from Java, but the two languages are otherwise unrelated and
have very different semantics. The key design principles within JavaScript are taken from
the Self and Scheme programming languages. It is a multi-paradigm language, supporting
object-oriented, imperative, and functional programming styles.

How can Java Script scripts run?

The first browser to support java script was the Netscape Navigator 2.0 of course the
higher versions do have java script as well. You might know that java does not run on all
Netscape Navigators 2.0 (or higher versions) versions. But this is not true for java script -
although there are some problems with the different versions.

The Mac version for example seems to have many bugs. In the near future there are
going to be some other browsers, which support java script. The Microsoft Internet
explorer 3.0 is going to support java script. JavaScript enabled browsers are going to
spread soon - it is worth learning this new technique now. You might realize that is really
easy to write Java Script scripts. We have to know is some basic techniques and some
work-around for problems you might encounter. Of course we need a basic.
Understanding HTML before reading this tutorial you can find many really good online
resources about HTML. Best you make an online search about ‘html’ at yahoo if you
want to get informed about HTML. Now I want to show some small scripts so you can

DEPARTMENT OF ISE, EWIT 2022-23 Page | 11


DBMS Mini Project Report December 30, 1899

learn how they are implemented into HTML-documents and to show which possibilities
you have with the new scripting language. The following is a very small script, which
will only print a text into an HTML document.

<html>

<head>

My first JavaScript

</head>

<body><br>

This is a normal HTML document

<br>

<script language=”JavaScript”>

Document.write (“this is a java script”)

</script><b r>

Backing HTML again

</body>

</html>

If you are using a java script enabled-browser at the moment then you will have the
possibility to see this script working. If your browser doesn’t support Java Script then this
output might be some kind of strange.

Functions

Functions are bet declared between the <Head> tag of HTML page. Functions are
called by user-initiated events. Seems reasonable to keep the functions between the
<Head> tags. They are loaded first before a user can do anything that might call a
function. Scripts can be placed between inside comment fields to ensure that older
browser do not display the script itself.

<html>

DEPARTMENT OF ISE, EWIT 2022-23 Page | 12


DBMS Mini Project Report December 30, 1899

<head>

<script language=”JavaScript”>

function pushbutton (){

alert (“Hello!”);

</script>

</head>

<body>

<form>

<input type=”button” name=”Button1” value=”push me” onclick=”pushbutton ()”>

</form>

</body>

</html>

If we want to test this one immediately and you are using a Java Script enabled browser
then please go ahead and push the button.

This script will create a button and when you press it a window will pop up saying
“hello!”. In fact we have a lot of possibilities just by adding functions to our scripts.

The common browsers transmit the form information by either method: here’s the
complete tag including the GET transmission method attribute for the previous form

Example

<Form method =GET action=http://www.mycompany.com/ upfdate.php>

………

</form>

Input elements.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 13


DBMS Mini Project Report December 30, 1899

Use the <input> tag to define any one of a number of common form elements
including text fields multiple choice lists click able images and submission buttons.
There are many attributers for this tag only that types and name attributes are required for
each element, each type of input element uses only a subset of the followed attributes.
Additional <input> attributes may be required based upon which type of the form element
you specify.

Submit button:

The submit button (<input type=submit> ) does what its name implies, settings in
motion the form’s submission to the server from the browser. We many have more than
submit buttons will be added to the parameter list the browser sends along to the server.

Example

< Input type =”submit”>

<Input type=”submit” value=”submit” name=”name”>

Reset button:

The reset button if firm <input> button is nearly self- explanatory; it lets the user reset
erase or set to some default value all elements in the form. By default the browser
displays a reset button worth the label “reset”. We can change that by specifying a value
attribute with tour own button label.

BACK-END TECHNOLOGY:

 MY SQL SERVER: -
It is an open-source It is 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.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 14


DBMS Mini Project Report December 30, 1899

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.
There are a large number of database management systems currently available, some
commercial and some free. Some of them: Oracle, Microsoft Access, Mysql and
PostgreSQL.

These database systems are powerful, feature-rich software, capable of organizing and
searching millions of records at very high speeds. Understanding Databases, Records, and
Primary Keys. Every Database is composed of one or more tables. These Tables, which
structure data into rows and columns, Impose organization on the data. The records in a
table(below) are not arranged in any particular order.

SQL, statements fall into one of three categories. (Types of SQL)

Data Definition Language (DDL) : DDL Consists of statements that define the structure
and relationships of a database and its table. These Statements are used to Create,
drop and modify databases and tables.
Data Manipulation Language (DML) : DML statements are related to altering and
extracting data from a database.
These statements are used to add records to, update records in, and delete records from, a
database; perform queries; retrieve table records matching one or more user specified
criteria; and join tables together using their common fields.

Data Control Language (DCL) : DCL statements are sued to define access levels and
security privileges for a database.
You would use these statements to grant or deny user privileges; assign roles; change
passwords; view permissions; and create rulesets to protect access to data.

The Syntax of SQL is quite intuitive. every SQL statement begins with an “action word”,
like DELETE, INSERT, ALTER etc. It ends with a semicolon. whitespace, tabs, carriage
returns are ignored.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 15


DBMS Mini Project Report December 30, 1899

Some example of valid SQL statements:


CREATE DATABASE employee;
SELECT name FROM users where email =”[email protected]”;
DELETE FROM cars WHERE year_of_manufacture< 1980;

CHAPTER 4:
SYSTEM DESIGN

4.1 INTRODUCTION
Design is the first step in the development phase for any techniques and
principles for the purpose of defining a device, a process or system in sufficient
detail to permit its physical realization.

Once the software requirements have been analysed and specified the software
design involves three technical activities - design, coding, implementation, and
testing that are required to build and verify the software.

4.2 CONTEXT DIAGRAM

DEPARTMENT OF ISE, EWIT 2022-23 Page | 16


DBMS Mini Project Report December 30, 1899

4.3 ENTITY-RELATIONSHIP Diagrams

E-R (Entity-Relationship) Diagram is used to represents the relationship


between entities in the table.

Attributes in ER diagrams are usually modelled as an oval with the name of the
attribute, linked to the entity or relationship that contains the attribute.

The symbols used in E-R diagrams are:

SYMBOL PURPOSE

Represents Entity Sets.

Represent
Attributes.

Represent Relationship Sets.

Line Represents Flow

DEPARTMENT OF ISE, EWIT 2022-23 Page | 17


DBMS Mini Project Report December 30, 1899

Structured analysis is a set of tools and techniques of the analyst.

Fig: ER Diagram of SRMS

DEPARTMENT OF ISE, EWIT 2022-23 Page | 18


DBMS Mini Project Report December 30, 1899

4.4 SCHEMA DIAGRAM

admin
id username password updationDate

tblclasses

id ClassName Section creationDate updationDate

tblnotice

id noticeTitle noticeDetails Posting Date

tblresult
id studentId classId subjectId marks postingDate updatingDate

id StudentName RollId StudentEmail Gender DOB ClassId RegDate Update

tblstudents

tblsubjectcombination
id classId subjectId status creationDate updationDate

tblsubjects
id subjectName subjectCode

The term "database schema" can refer to a visual representation of a database, a


set of rules that govern a database, or to the entire set of objects belonging to a
particular user. Read on to find out more about database schema and how they
are used.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 19


DBMS Mini Project Report December 30, 1899

4.5 SYSTEM MODULES

Student Result Management System divided in two modules-

 Student
 Admin
Admin Features

 Admin Dashboard
 Admin can add/update/Class
 Admin can add/update/Subjects
 Admin can add/update/Subject combination with class
 Admin can register new student and edit info of the student
 Admin can declare/edit result of a student.
 Admin can add/delete notices.
 Admin can change own password
Students-

 Student can search their result using valid USN.


 Student can also view the notices.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 20


DBMS Mini Project Report December 30, 1899

4.6 TABLE DESIGN


The data in the system must be stored and retrieved from database.
Designing the database is part of system design. Data elements and data
structures to be stored have been identified at analysis stage. They are structured
and put together to design the data storage and retrieval system.

A database is a collection of interrelated data stored with minimum redundancy


to serve many users quickly and efficiently. The general objective is to make
database access easy, quick, inexpensive, and flexible for the user. Relationships
are established between the data items and unnecessary data items are removed.
Normalization is done to get an internal consistency of data and to have
minimum redundancy and maximum stability. This ensures minimizing data
storage required, minimizing chances of data inconsistencies, and optimizing for
updates. The MySQL database has been chosen for developing the relevant
databases.

Student Result Management System (SRMS) contains 7 MySQL tables:

 admin: This tables stores admin login details.

 tblclasses : This tables stores class information.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 21


DBMS Mini Project Report December 30, 1899

 tblsubjects: This table store subject details.

 tblsubjectcombination: It stores class and subject combination details.

 tblstudents: This table stores student details.

tblresult : This stores the result details.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 22


DBMS Mini Project Report December 30, 1899

tblnotices: This table used to store the notices.

Relationship Diagram Between Tables

DEPARTMENT OF ISE, EWIT 2022-23 Page | 23


DBMS Mini Project Report December 30, 1899

CHAPTER 5:
TESTING
Testing is a process of executing a program with the intent of finding an error. Testing
is a crucial element of software quality assurance and presents ultimate review of
specification, design and coding.

System Testing is an important phase. Testing represents an interesting anomaly for the
software. Thus a series of testing are performed for the proposed system before the system is
ready for user acceptance testing.

A good test case is one that has a high probability of finding an as undiscovered error. A
successful test is one that uncovers an as undiscovered error.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 24


DBMS Mini Project Report December 30, 1899

Testing Objectives:

 Testing is a process of executing a program with the intent of finding an error


 A good test case is one that has a probability of finding an as yet undiscovered error
 A successful test is one that uncovers an undiscovered error

Testing Principles:

 All tests should be traceable to end user requirements


 Tests should be planned long before testing begins
 Testing should begin on a small scale and progress towards testing in large
 Exhaustive testing is not possible
 To be most effective testing should be conducted by a independent third party

The primary objective for test case design is to derive a set of tests that has the highest
livelihood for uncovering defects in software. To accomplish this objective two different
categories of test case design techniques are used. They are

 White box testing.

 Black box testing.

White-box testing:

White box testing focus on the program control structure. Test cases are derived to
ensure that all statements in the program have been executed at least once during testing and
that all logical conditions have been executed.

Block-box testing:

Black box testing is designed to validate functional requirements without regard to the
internal workings of a program. Black box testing mainly focuses on the information domain
of the software, deriving test cases by partitioning input and output in a manner that provides
through test coverage. Incorrect and missing functions, interface errors, errors in data
structures, error in functional logic are the errors falling in this category.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 25


DBMS Mini Project Report December 30, 1899

Testing strategies:

A strategy for software testing must accommodate low-level tests that are necessary to
verify that all small source code segment has been correctly implemented as well as high-
level tests that validate major system functions against customer requirements.

Testing fundamentals:

Testing is a process of executing program with the intent of finding error. A good test
case is one that has high probability of finding an undiscovered error. If testing is conducted
successfully, it uncovers the errors in the software. Testing cannot show the absence of
defects, it can only show that software defects present.

Testing Information flow:

Information flow for testing flows the pattern. Two class of input provided to test the
process. The software configuration includes a software requirements specification, a design
specification and source code.

Test configuration includes test plan and test cases and test tools. Tests are conducted
and all the results are evaluated. That is test results are compared with expected results. When
erroneous data are uncovered, an error is implied and debugging commences.

Unit Testing:

Unit testing is essential for the verification of the code produced during the coding
phase and hence the goal is to test the internal logic of the modules. Using the detailed
design description as a guide, important paths are tested to uncover errors with in the
boundary of the modules. These tests were carried out during the programming stage itself.
All units of Vienna SQL were successfully tested.

Integration testing:

Integration testing focuses on unit tested modules and build the program structure that
is dictated by the design phase.

System testing:

DEPARTMENT OF ISE, EWIT 2022-23 Page | 26


DBMS Mini Project Report December 30, 1899

System testing tests the integration of each module in the system. It also tests to find
discrepancies between the system and its original objective, current specification and system
documentation. The primary concern is the compatibility of individual modules. Entire
system is working properly or not will be tested here, and specified path ODBC connection
will correct or not, and giving output or not are tested here these verifications and validations
are done by giving input values to the system and by comparing with expected output. Top-
down testing implementing here.

Acceptance Testing:

This testing is done to verify the readiness of the system for the implementation.
Acceptance testing begins when the system is complete. Its purpose is to provide the end user
with the confidence that the system is ready for use. It involves planning and execution of
functional tests, performance tests and stress tests in order to demonstrate that the
implemented system satisfies its requirements. Tools to special importance during acceptance
testing include: Test coverage Analyzer – records the control paths followed for each test
case. Timing Analyzer – also called a profiler, reports the time spent in various regions of the
code are areas to concentrate on to improve system performance.

Coding standards – static analysers and standard checkers are used to inspect code for
deviations from standards and guidelines.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 27


DBMS Mini Project Report December 30, 1899

CHAPTER 6:
IMPLEMENTATION AND CODE

PHP Mysql connectivity


Use the mysql_connect() function to established connection to the MySQL server. To
access the database functionality, we have to make a connection to database using PHP.
mysql_connect() function is used to establish the connection to mysql server.
four arguments need to be passed to mysql_connect() function.
hostname: if you are working on local system, you can use localhost or you can also provide
ip address or server name.
username : if there is a existing user , you can provide username. default username is ‘root’.
password: by default password is blank or null.
dbname : it is an optional field . it is basically a name of the database that need to be
connected.
mysql_connect(host,username,password,dbname);
host (Server name) ---- Either a host name(server name) or an IP address
username---- The MySQL user name
password----The password to log in with
dbname----Optional. The database to be used when performing queries
Note: There are more available parameters, but the ones listed above are the most important.

In the following example we store the connection in a variable ($con) for later use in the
script.

<?php
// Create connection
$con=mysqli_connect("localhost","root","") or die(mysql_error());
?>
Here localhost is server name. root is MySQL default user name. default password is blank
and database name is my_db. mysql_error( ) function provides mysql connectivity error
message.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 28


DBMS Mini Project Report December 30, 1899

MySQL Close Connection


<?php

// Create connection

$con=mysqli_connect("localhost","root","","my_db") or die(mysql_error());

//code to be executed.

// Close connection

mysql_close($con);

?>

After work with the database is done we have to close the connection using mysql_close()
function in which the connection to the database is passed.

CONFIGURATION CODE

<?php
// DB credentials.
define('DB_HOST','localhost');
define('DB_USER','root');
define('DB_PASS','');
define('DB_NAME','srms');
try
{
$dbh = new PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME,DB_USER,
DB_PASS,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"));
}
catch (PDOException $e)
{
exit("Error: " . $e->getMessage());
}
?>

DEPARTMENT OF ISE, EWIT 2022-23 Page | 29


DBMS Mini Project Report December 30, 1899

CHAPTER 7:
SNAPSHOTS
7.1 Home Page

7.2 Notice Details

DEPARTMENT OF ISE, EWIT 2022-23 Page | 30


DBMS Mini Project Report December 30, 1899

7.3 Search Result

7.4 Result Details

DEPARTMENT OF ISE, EWIT 2022-23 Page | 31


DBMS Mini Project Report December 30, 1899

7.5 Admin Login

7.6 Admin Dashboard

DEPARTMENT OF ISE, EWIT 2022-23 Page | 32


DBMS Mini Project Report December 30, 1899

7.7 Add Class

7.8 Manage Class

DEPARTMENT OF ISE, EWIT 2022-23 Page | 33


DBMS Mini Project Report December 30, 1899

7.9 Edit Class

7.10 Add Subject

DEPARTMENT OF ISE, EWIT 2022-23 Page | 34


DBMS Mini Project Report December 30, 1899

7.11 Manage Subjects

7.12 Edit Subject

DEPARTMENT OF ISE, EWIT 2022-23 Page | 35


DBMS Mini Project Report December 30, 1899

7.13 Add Subject Class Combination

7.14 Manage Subject class Combination

DEPARTMENT OF ISE, EWIT 2022-23 Page | 36


DBMS Mini Project Report December 30, 1899

7.15 Add Student

7.16 Manage Students

DEPARTMENT OF ISE, EWIT 2022-23 Page | 37


DBMS Mini Project Report December 30, 1899

7.17 Edit Students

7.18 Add Result

DEPARTMENT OF ISE, EWIT 2022-23 Page | 38


DBMS Mini Project Report December 30, 1899

7.19 Manage Results

7.20 Edit Result

DEPARTMENT OF ISE, EWIT 2022-23 Page | 39


DBMS Mini Project Report December 30, 1899

7.21 Add Notice

7.22 Manage Notices

DEPARTMENT OF ISE, EWIT 2022-23 Page | 40


DBMS Mini Project Report December 30, 1899

7.23 Admin Change Password

DEPARTMENT OF ISE, EWIT 2022-23 Page | 41


DBMS Mini Project Report December 30, 1899

CHAPTER 8:
CONCLUSION
The package was designed in such a way that future modifications can be
done easily. The following conclusions can be deduced from the development
of the project.

 Automation of the entire system improves the efficiency


 It provides a friendly graphical user interface which proves to be
better when compared to the existing system.
 It gives appropriate access to the authorized users depending on
their permissions.
 It effectively overcomes the delay in communications.
 Updating of information becomes so easier.
 System security, data security and reliability are the striking
features.
 The System has adequate scope for modification in future if it is
necessary.

DEPARTMENT OF ISE, EWIT 2022-23 Page | 42


DBMS Mini Project Report December 30, 1899

CHAPTER 8:
BIBLIOGRAPHY

The following books were referred during the analysis and execution phase of
the project
 PHP and MySQL Web Development

Book by Luke Welling

 Head First PHP & MySQL

Book by Lynn Beighley and Michael Morrison

 PHP & MySQL for Dummies

Book by Janet Valade

WEBSITES:

 www.google.com
 www.w3schools.com
 www.tutorialspoint.php
 http://stackoverflow.com

DEPARTMENT OF ISE, EWIT 2022-23 Page | 43

You might also like