Online Feedback Management System

You might also like

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

A Training Report

On
ONLINE FEEDBACK MANAGEMENT SYSTEM
Submitted to the Rajasthan Technical University, Kota

In partial fulfillment of the requirement for the degree of


MASTER OF COMPUTER APPLICATIONS

Submitted by:
Jyotsana Kanda (18CCIXX227)

Ayushi Rai (18CCIXX212)

Taruna Kanwar (18CCIXX286)

Gajal Kaushik (18CCIXX220)


Name of Training In charge:
Name of Internal Guide:
Rajesh Kumar Arora
Mahendra Singh Panwar
H.O.D, CIITM Project Manager, CSL

Compucom Institute of Information Technology &


Management, Jaipur- 302022
Affiliated to
Rajasthan Technical University, Kota
MASTER OF COMPUTER APPLICATIONS
(2017-20)

1
IT:-14-15, EPIP, Sitapura, Jaipur, Rajasthan-302022, India
Ph.: +91-141-5115908 (10 Lines), 2770131
Fax: +91-141-2770335
E-mailfin@compucom.co.in
CIN: L72200RJ1995PLC009798

CURRICULUM INTERNSHIP CERTIFICATE

This is to certify that Miss, Gajal Kaushik pursuing MCA from


Compucom Institute of Information Technology & Management, Jaipur
has successfully completed her project training from our organization.
The duration of this project titled Online Feedback Management System
in PHP stream was from 11 December 2019 to 11 June 2020.
During this period her performance was good.
We wish her all the best for future endeavors.

Internship Coordinator: Mr. Kalyan Samanta

With Best Wishes,


From Compucom Software Limited
Rajesh Kumar Arora
(Project Manager)
Compucom Software Limited
Compucom Institute of Information Technology and
Management
Jaipur- 302022
Department of Computer Science and Application

CERTIFICATE

This is to certify that the Industrial Project (MCA-601) work entitled


“Online Feedback Management System” submitted byGajal Kaushik
(Roll No. 18CCIXX220)to the Department Of Computer Science and
Application of Compucom Institute of Information Technology &
Management has been examined and evaluated.

The project work has been prepared as per the regulations of Rajasthan
Technical University, Kota and qualifies to be accepted in partial fulfillment
of the requirement for the degree of MCA (Master of Computer
Applications).

Internal Examiner:-

Mahendra Singh Panwar, HOD

Dr. M.R. Farooqui

Principal

3|Page
DECLARATION

I am the students of MCA in Rajasthan Technical University and would like


to declare that the dissertation entitled Deskwork System submitted by me
in partial fulfillment of the requirements for the award of the Degree of
MCA Semester-IV.

Gajal Kaushik
MCA 6TH Semester
CIITM

Place: Jaipur

4|Page
ACKNOWLEDGEMENT
It is our privilege to express our sincerest regards to our Training project in-
charge, Mr. Rajesh Kumar Arora for their valuable inputs, able guidance,
encouragement, whole-hearted cooperation and constructive criticism
throughout the duration of our project.

We deeply express our sincere thanks to our Training project guide Mr.
Mahendra Singh Panwar for encouraging and allowing us to present the
project on the topic “Online Feedback Management System” at our
department premises for the partial fulfillment of the requirements leading to
the award of MCA degree.

We take this opportunity to thank all lecturers who have directly or


indirectly helped our project.

5|Page
3. DECLARATION………………………….……………………….……………………...........….4

4. ACKNOWLEDGEMENT…………………………………...……………..…………………….5

5. INTRODUCTION ABOUT ORGANISATION….………………………………………...…...7

ABOUT OFMS……………………………………………………………………………...…….
6.

7. OBJECTIVES AND SCOPE OF THE PROJECT.....................................................................10

8. THEORETICAL BACKGROUND..............................................................................................12

9. HTML.............................................................................................................................................12

10. PHP..................................................................................................................................................14

11. MySQL............................................................................................................................................27

12. PROBLEM DEFINITION............................................................................................................32

13. FEASIBILITY STUDY.................................................................................................................33

14. SYSTEM ANALYSIS AND DESIGN……………………………………………….………….36

15. SYSTEM PLANNING (PERT CHART).....................................................................................38

16. METHODOLOGY ADOPTED....................................................................................................40

17. SYSTEM IMPLEMENTATION..................................................................................................43

18. HARDWARE AND SOFTWARE REQUIREMENTS..............................................................44

19. SYSTEM MAINTAINANCE........................................................................................................45

20. COST AND BENEFITS ANALYSIS...........................................................................................47

21. PROJECT LIFE CYCLE..............................................................................................................50

22. ER-DIAGRAM...............................................................................................................................52

23. DATA FLOW DIAGRAMS..........................................................................................................53

24. INPUT – OUTPUT SCREEN DESIGNS.....................................................................................55

25. BASIC PROJECT CODE.............................................................................................................66

26. TESTING METHODOLGY.......................................................................................................116

27. TEST REPORT............................................................................................................................119

28. USER/OPERATIONAL MANUAL...........................................................................................121

29. CONCLUSION OF THE PROJECT.........................................................................................122

30. REFERENCES AND LINKS……………………………………………………..…..……......123

6|Page
INTRODUCTION ABOUT THE ORGANIZATION

COMPUCOM SOFTWARE LIMITED

Compucom Software Limited (CSL) is the leading software and education company
from the state of Rajasthan, serving customers spread across the six major continents.
Rapidly expanding its client base and revenue streams, the company now works out of its
development centers in Jaipur (India) and Atlanta GA (USA).

Since its IPO in 1999, CSL has been listed on the Bombay Stock Exchange (BSE). The
company has been adjudged the best software exporter for many years by Software
Technology Parks of India (STPI). The State and Central Governments have
acknowledged our contributions by various coveted honors and awards, during this
course.

Compucom Foundation
Compucom Foundation is committed to working towards the development and
empowerment of socially and economically marginal communities through various
initiatives. Our belief in giving back to society has inspired us to always stand by the
state in making our honest contributions for the development of the underprivileged, and
in times of natural calamities.

Compucom Foundation offers the promise of a better tomorrow and focuses on


improving the quality of education wherein we have envisioned a world class engineering
and management institute (CIITM, www.ciitm.org) of excellence, with the primary focus
on an all-round holistic development of the budding engineers and managers.

 Compucom Software Limited has been awarded an ICT project by Govt. of


Rajasthan to provide computer education on BOOT basis in 1373 Govt.

7|Page
Secondary Schools of Rajasthan. The contract value is worth Rs. 158.50 Crores
approx. 
 Compucom Software Ltd. Has been awarded an ICT project worth Rs. 46.71
Croresapprox by Bihar State Education Infrastructure Development Corporation
Ltd. 
 Compucom shares listed on NSE
 Compucom has been conferred with Excellence award by the Govt. of Rajasthan.
This award is a recognition for company’s continuous effort in the field of
technology and associated services. 
 Compucom Software Limited’s subsidiary CSL Infomedia (P) Ltd., has received
permission from ministry of Information and Broadcasting, Govt. of India, to
uplink and downlink two News and Current Affairs satellite channels namely
JanTV and JanTV Plus
 Compucom successfully reappraised for CMMI (1.2 dev) ML-3
 CSL has been awarded Rajasthan Export Award for the year 08-09. 

Services of the company


 Software Design and Development.
 Customized Web Solution.
 7*24 Maintenance and Customer Support.
 Data/Drawing/Document Conversion.
 IT Training and Education.
 On Site Staff Supplementation.
 Business Process Outsourcing.

8|Page
ABOUT OFMS
Online Feedback Management System (OFMS) is a web based system that can assists the
information of Feedback during its handling in the Feedback Management. The project is
defining a well-mannered structure of the record of Feedback in a Feedback
Management, in which a user can easily register and can also check his/her
givenFeedback report.

Student Feedback system for College in PHP (Source code) Here we have developed a
faculty feedback system, which is generally used in the college to rate the faculty based
on the performance. Here we have 2 modules such as administrator, student.
Administrator is the one who creates the student account by adding all student info and
assigning the username and password.
Admin also checks the result once all students entered the feedback.. We can start the
development from the login page, where we have given the option to login as admin and
student.
Here since we have only one admin account, so no need to create the a database to store
admin information so the admin username is "admin" and password is "admin" select
admin in the radio button and login You can perform all admin actions such as login to
the account and check result.
If you entered the student user and password and selected student option, then it will
show all student information and let you enter the feedback based on the subject. Before
we can look into the PHP code, you need to create a database called "feed" with two
tables in it one as student and another one as take

In this project user can easily register by simply filling up a user registration form and
he/she will be provided a user-id and password for accessing their information. The user-
id and password is automatically generated after a successfully registration of a user.The
project is developed in a prescribed format in PHP language, it has a built in connectivity
to each and every user as well as admin portal, through which a Feedback Management
can be easily managed and the study of Feedback report can be transparently provided to
the user, so the user have faith in his/her report of Feedback.

9|Page
OBJECTIVES AND SCOPE

The project is defining a well-mannered structure of the record of Feedback in a


Feedback Management, in which a user can easily register and can also check his/her
givenFeedback report. In this project the user can also search for Feedback, if he/she
wants Feedback in an urgent need of Feedback, for him/her or may be for someone.

In this project user can easily register by simply filling up a user registration form and
he/she will be provided a user-id and password for accessing their information. The user-
id and password is automatically generated after a successfully registration of a user.

The project is developed in a prescribed format in PHP language, it has a built in


connectivity to each and every user as well as admin portal, through which a Feedback
Management can be easily managed and the study of Feedback report can be
transparently provided to the user, so the user have faith in his/her report of Feedback.

This project is developed for an easy, effective and efficient management of the Feedback
Management with providing many facilities to the users and the patients and can be easily
managed by the admin.

The major objective behind this project is to provide the Feedback for the needed patients
or the directly donation of the Feedback by user for the patient, and the Feedbackuser can
donate the Feedback by using this platform easily.

For some easy and convenient processing we need to develop aOnline Feedback
Management System that works as per the secured management of the Feedback and
when needed, it will be provided to the patient i.e. in an urgent need of Feedback for a
patient.

From security point of view this project has a unique user-name and password allotted to
each of the user or may be patient and the administrator. And if the user or patient is not
yet registered they can register themselves by simply filling the registration form, after
10 | P a g e
successful registration, they can login by simply entering their e-mail id and the
password, here the e-mail id is used as the primary key and also as the user-name for the
login into the Online Feedback Management System.

The user can also see the Feedback donation camps we have organized at many places
and the units per place we’ve collected. They can also search for the Feedback, that if that
type of Feedback we have or not, it will be easy to find out the Feedback, if Feedback
group is matched then user can apply to get that type of Feedback and also can specify
the date till that it is required.

To develop this project we used very convenient and reliable languages. These include
HTML, PHP, JavaScript, CSS and MySQL. These languages are developed in such a
manner that they could be used for a long time. This allows our application a long time
event.

11 | P a g e
THEORETICAL BACKGROUND

HTML

Hypertext Markup Language (HTML) is a system for marking up documents with tags
that indicate how text in the documents should be presented and how the documents are
linked together.
Hypertext links are quite powerful. Within the HTML markup scheme lays the power to
create interactive, cross-platform, multimedia, and client-server applications. Such a
system is the World Wide Web (also known as WWW or just simply, the Web).

HTML is a language under construction. The continuing development of HTML is


conducted on the Web in an open process. New tools and techniques appear frequently
and are quickly spread throughout the community of Web authors.

HTML is not a programming language and an HTML document is not a computer


program. A computer program is a series of procedures and instructions applied,
typically, to external data. An HTML document, however, is the data. The definition of
HTML specifies the grammar and syntax of markup tags that, when inserted into the
data; instruct browsers - computer programs that read HTML documents - how to present
the document.
HTML is just a series of tags that are integrated into a document that can have text,
images or multimedia content. HTML tags are usually English words or abbreviations,
but they are distinguished from the regular text because they are placed in small angle
brackets. Some tags dictate how the page will be formatted and others dictate how the
words appear. Still others provide information, such as title, that doesn’t appear on the
page itself.HTML pages are of two types:-
Static Pages: One can only view the web page without being able to have any
interaction with it.
Dynamic Pages:Content of the web page depends upon user input. Therefore
interaction with the user is essential.

12 | P a g e
HTML Tags

HTML works as a system of tags, one word or coded commands surrounded by right
angle parentheses (<>). Most tags has a front and a back form which encases the text and
instructs the browser software or computer server on how that text should appear and
what functions it might activate. All web pages begin and end with the <HTML> tags.

After the initial <HTML> tag, the <HEAD></HEAD> tags reside and contain the
<TITLE></TITLE> tags between which resides the title of the page that is displayed on
the top bar of the browser screen. Next the <BODY></BODY> tags are placed before
and after all the text included in the page, and within body tag are specifications for text
and background colors. The ordinary text is displayed as text. The tags (also called
elements) are special instructions.
Tags are identified by their names enclosed in angle brackets. The special symbols (also
called entities) are code punctuation marks such as the ampersand & and the quotation
marks ".
Thus HTML markup tags are delimited by the angle brackets,
< ... >
They appear either singularly, like the tag <P> to indicate a paragraph break in the text,
or as a pair of starting and ending tags that modify the content contained.
For example:-
<B> Attention! </B> is an instruction to present the text string Attention! In a bold
typeface.
<COMMENT>this is a comment </COMMENT> which is a comment on an HTML file.

There are tags for formatting text, tags for specifying hypertext links, tags for including
sound and picture elements, tags for defining input fields for interactive pages.
That’s all there is to Hypertext Markup Language – character entities and markup tags.
However, this system of entities and tags is evolving. HTML is not case sensitive.

13 | P a g e
PHP

PHP is the recursive acronym for "PHP: Hypertext Preprocessor". PHP is a powerful
server-side scripting language for creating dynamic and interactive websites.

PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's
ASP. PHP is perfectly suited for Web development and can be embedded directly into the
HTML code.

The PHP syntax is very similar to Perl and C. PHP is often used together with Apache
(web server) on various operating systems. It also supports ISAPI and can be used with
Microsoft's IIS on Windows.

What distinguishes PHP from something like client-side JavaScript is that the code is
executed on the server. The PHP code is enclosed in special start and end tags that allow
you to jump into and out of "PHP mode".

The major advantages of PHP include-

 PHP can be used on all major operating systems, including Linux, many Unix
variants, Microsoft Windows, Mac OS X, and probably others.

 PHP has also support for most of the web servers today. This includes Apache,
Microsoft Internet Information Server, Personal Web Server, Netscape and
iPlanet servers, and many others.

 With PHP you are not limited to output HTML. PHP has abilities to include
outputting images, PDF files and even Flash movies.

 One of the strongest and most significant features in PHP is its support for a wide
range of databases, like MySQL, Oracle, Solid, PostgreSQL, Generic ODBC etc.

14 | P a g e
PHP Basic

PHP Syntax

You cannot view the PHP source code by selecting "View source" in the browser - you
will only see the output from the PHP file, which is plain HTML. This is because the
scripts are executed on the server before the result is sent back to the browser.

A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block
can be placed anywhere in the document.

<?php
?>

A PHP file normally contains HTML tags, just like an HTML file, and some PHP
scripting code.

Below, we have an example of a simple PHP script which sends the text "Hello World"
to the browser:

<html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>

PHP Variables

15 | P a g e
Variables are used for storing values, such as numbers, strings or function results, so that
they can be used many times in a script.

All variables in PHP start with a $ sign symbol.The correct way of setting a variable in
PHP:

$var_name = value;
PHP String

A string variable is used to store and manipulate a piece of text.After we create a string
we can manipulate it. A string can be used directly in a function or it can be stored in a
variable.

Below, the PHP script assigns the string "Hello World" to a string variable called $txt:

<?php
$txt="Hello World";
echo $txt;
?>

The output of the code above will be:

Hello World

PHP Operators

Operators are used to operate on values.

Arithmetic Operators

Operator Description Example Result


+ Addition x=2 4
x+2
- Subtraction x=2 3
5-x
* Multiplication x=4 20
16 | P a g e
x*5
/ Division 15/5 3
5/2 2.5
% Modulus (division remainder) 5%2 1
10%8 2
10%2 0
++ Increment x=5 x=6
x++
-- Decrement x=5 x=4
x--

Assignment Operators

Operator Example Is The Same As


= x=y x=y
+= x+=y x=x+y
-= x-=y x=x-y
*= x*=y x=x*y
/= x/=y x=x/y
.= x.=y x=x.y
%= x%=y x=x%y

Comparison Operators

Operator Description Example


== is equal to 5==8 returns false
!= is not equal 5!=8 returns true
> is greater than 5>8 returns false
< is less than 5<8 returns true
>= is greater than or equal to 5>=8 returns false
<= is less than or equal to 5<=8 returns true

Logical Operators

Operator Description Example


&& And x=6
y=3

17 | P a g e
(x < 10 && y > 1) returns true
|| Or x=6
y=3

(x==5 || y==5) returns false


! Not x=6
y=3

!(x==y) returns true

PHP Conditional Statements

Very often when you write code, you want to perform different actions for different
decisions. You can use conditional statements in your code to do this.

The If...Else Statement

If you want to execute some code if a condition is true and another code if a condition is
false, use the if....else statement.

Syntax

if (condition)
code to be executed if condition is true;
else
code to be executed if condition is false;

The ElseIf Statement

If you want to execute some code if one of several conditions are true use the elseif
statement

Syntax

if (condition)
code to be executed if condition is true;

18 | P a g e
elseif (condition)
code to be executed if condition is true;
else
code to be executed if condition is false;
PHP Switch Statements

The Switch statement in PHP is used to perform one of several different actions based on
one of several different conditions. It is used to avoid long blocks of if..elseif..else code.

Syntax

switch (expression)
{
case label1:
code to be executed if expression = label1;
break;
case label2:
code to be executed if expression = label2;
break;
default:
code to be executed
if expression is different
from both label1 and label2;
}
PHP Arrays
An array can store one or more values in a single variable name. Each element in the
array has its own ID so that it can be easily accessed. There are three different kind of
arrays:

1.Numeric Arrays

A numeric array stores each element with a numeric ID key.

19 | P a g e
Example

$names = array("Peter","Quagmire","Joe");

2. Associative Arrays

An associative array, each ID key is associated with a value.

Example

$ages = array("Peter"=>32, "Quagmire"=>30, "Joe"=>34);

3. Multidimensional Arrays

In a multidimensional array, each element in the main array can also be an array. And
each element in the sub-array can be an array, and so on.

Example

$families = array
(
"Griffin"=>array
(
"Peter",
"Lois",
"Megan"
),
"Quagmire"=>array
(
"Glenn"
),
"Brown"=>array
(
"Cleveland",
"Loretta",
20 | P a g e
"Junior"
)
);

PHP Looping

Looping statements in PHP are used to execute the same block of code a specified
number of times. In PHP we have the following looping statements:

1. The while Statement: The while statement will execute a block of code if and as long
as a condition is true.

Syntax

while (condition)
code to be executed;

2. The do...while Statement: The do...while statement will execute a block of code at
least once - it then will repeat the loop as long as a condition is true.

Syntax

Do
{
code to be executed;
}
while (condition);

3. The for Statement: The for statement is used when you know how many times you
want to execute a statement or a list of statements.

Syntax

for (initialization; condition; increment)


{

21 | P a g e
code to be executed;
}

4. The foreach Statement: The foreach statement is used to loop through arrays.

Syntax

foreach (array as value)


{
code to be executed;
}

PHP Functions

The real power of PHP comes from its functions. In PHP - there are more than 700 built-
in functions available.

Example
<html>
<body>
<?php
function writeMyName()
{
echo "Kai Jim Refsnes";
}
echo "Hello world!<br />";
echo "My name is ";
writeMyName();
echo ".<br />That's right, ";
writeMyName();

22 | P a g e
echo " is my name.";
?>
</body>
</html>

The output of the code above will be:

Hello world!
My name is Kai Jim Refsnes.
That's right, Kai Jim Refsnes is my name.

Functions can also be used to add parameters and return values.

Example

<html>
<body>
<?php
function add($x,$y)
{
$total = $x + $y;
return $total;
}
echo "1 + 16 = " . add(1,16);
?>
</body>
</html>

The output of the code above will be:

1 + 16 = 17

PHP Forms and User Inputs

23 | P a g e
The PHP $_GET and $_POST variables are used to retrieve information from forms, like
user input.

Form example:

<html>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>

The example HTML page above contains two input fields and a submit button. When the
user fills in this form and click on the submit button, the form data is sent to the
"welcome.php" file.

The "welcome.php" file looks like this:

<html>
<body>
Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.
</body>
</html>

A sample output of the above script may be:

Welcome John.
You are 28 years old.

PHP $_GET

24 | P a g e
The $_GET variable is used to collect values from a form with method = "get".

Information sent from a form with the GET method is visible to everyone (it will be
displayed in the browser's address bar) and it has limits on the amount of information to
send (max. 100 characters).

Example

<form action="welcome.php" method="get">


Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>

When the user clicks the "Submit" button, the URL sent could look something like this:

http://www.w3schools.com/welcome.php?name=Peter&age=37

The "welcome.php" file can now use the $_GET variable to catch the form data (notice
that the names of the form fields will automatically be the ID keys in the $_GET array):

Welcome <?php echo $_GET["name"]; ?>.<br />


You are <?php echo $_GET["age"]; ?> years old!

PHP $_POST

The $_POST variable is used to collect values from a form with method = "post".The
$_POST variable is used to collect values from a form with method="post".
Information sent from a form with the POST method is invisible to others and has
no limits on the amount of information to send.

Example

<form action="welcome.php" method="post">


Enter your name: <input type="text" name="name" />

25 | P a g e
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form>

When the user clicks the "Submit" button, the URL will not contain any form data, and
will look something like this:

http://www.w3schools.com/welcome.php

The "welcome.php" file can now use the $_POST variable to catch the form data (notice
that the names of the form fields will automatically be the ID keys in the $_POST array):

Welcome <?php echo $_POST["name"]; ?>.<br />


You are <?php echo $_POST["age"]; ?> years old!

MySQL

MySQL is currently the most popular open source database server in existence, which
defines a structure for storing information. On top of that, it is very commonly used in
conjunction with PHP scripts to create powerful and dynamic server-side applications.
The most important advantage of using MySQL with PHP is that PHP in collaboration
with MySQL provides cross-platform.

With MySQL, we can query a database for specific information and have a record set
returned.

MySQL Connect

Before you can do anything with MySQL in PHP you must first establish a connection to
your web host's MySQL database. This is done with the MySQL connect function.

Syntax
mysql_connect(servername,username,password);
26 | P a g e
MySQL localhost

When the PHP script and MySQL are on the same machine, you can use localhost as the
address you wish to connect to. localhost is a shortcut to just have the machine connect to
itself. If your MySQL service is running at a separate location you will need to insert the
IP address or URL in place of localhost.

Example

In the following example we store the connection in a variable ($con) for later use in the
script. The "die" part will be executed if the connection fails:

<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// some code
?>

Closing a Connection

The connection will be closed as soon as the script ends. To close the connection before,
use the mysql_close() function.

<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());

27 | P a g e
}
// some code
mysql_close($con);
?>

PHP MySQL Create Database and Tables

A database holds one or multiple tables.

The CREATE DATABASE statement is used to create a database in MySQL.

Syntax

CREATE DATABASE database_name

To get PHP to execute the statement above we must use the mysql_query() function. This
function is used to send a query or command to a MySQL connection.

The CREATE TABLE statement is used to create a database table in MySQL.

Syntax

CREATE TABLE table_name


(
column_name1 data_type,
column_name2 data_type,
column_name3 data_type,
.......
)

Important: A database must be selected before a table can be created. The database is
selected with the mysql_select_db() function.

PHP MySQL Insert Into

The INSERT INTO statement is used to add new records to a database table.

28 | P a g e
Syntax

INSERT INTO table_name


VALUES (value1, value2,....)

You can also specify the columns where you want to insert the data:

INSERT INTO table_name (column1, column2,...)


VALUES (value1, value2,....)

PHP MySQL Select

The SELECT statement is used to select data from a database.

Syntax

SELECT column_name(s)
FROM table_name

PHP MySQL The Where Clause

To select only data that matches a specified criteria, add a WHERE clause to the
SELECT statement -

Syntax

SELECT column FROM table


WHERE column operator value

The following operators can be used with the WHERE clause:

Operator Description
= Equal
!= Not equal
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal

29 | P a g e
BETWEEN Between an inclusive range
LIKE Search for a pattern

The output of the code above will be:

Peter Griffin

PHP MySQL Order By Keyword

The ORDER BY keyword is used to sort the data in a recordset.

Syntax

SELECT column_name(s)
FROM table_name
ORDER BY column_name

PHP MySQL Update

The UPDATE statement is used to modify data in a database table.

Syntax
UPDATE table_name
SET column_name = new_value
WHERE column_name = some_value

PHP MySQL Delete Form

The DELETE FROM statement is used to delete records from a database table.

Syntax

DELETE FROM table_name


WHERE column_name = some_value

30 | P a g e
PROBLEM DEFINITION

Online Feedback Management System has been developed to deal with the problem faced
by the Feedback Managements i.e. the management of the Feedback in an efficient
manner, managing the users and it also provides a way in which the administrator can
manage the users and also check and update the details and profile of the users.

At present, the public can only know about the Feedback donation events through
conventionalmedia means such as radio, newspaper or television advertisements. There is
no informationregarding the Feedback donation programs available on any of the portal.

The current system that is using by the Feedback Management is manual system. With
the manual system,there are problems in managing the users' records.

The records of the user might not be keptsafely and there might be missing of user's
records due to human error or disasters. Besidesthat, errors might occur when the staff
keeps more than one record for the same user.There is no centralized database of
volunteer users.

So, it becomes really tedious for a person tosearch Feedback in case of emergency. The
only option is to manually search and match users andthen make phone calls to every
user.

Hence, the user is consideredto be a first-timer if they make Feedback donation in a new
place.Without an automated management system, there are also problems in keeping
track of the actualamount of each and every Feedback type in the Feedback Management.
31 | P a g e
In addition, there is also no alertavailable when the Feedback quantity is below its par
level or when the Feedback in the bank hasexpired.

FEASIBILITY STUDY

A feasibility study aims to objectively and rationally uncover the strengths and
weaknesses of an existing business or proposed venture, opportunities and threats present
in the natural environment, the resources required to carry through, and ultimately the
prospects for success. In its simplest terms, the two criteria to judge feasibility are cost
required and value to be attained.

A well-designed feasibility study should provide a historical background of the business


or project, a description of the product or service, accounting statements, details of the
operations and management, marketing research and policies, financial data, legal
requirements and tax obligations. Generally, feasibility studies precede technical
development and project implementation.

A feasibility study evaluates the project's potential for success; therefore, perceived
objectivity is an important factor in the credibility of the study for potential investors and
lending institutions. It must therefore be conducted with an objective, unbiased approach
to provide information upon which decisions can be based.

Technical feasibility

This assessment is based on an outline design of system requirements, to determine


whether the company has the technical expertise to handle completion of the project.
When writing a feasibility report, the following should be taken to consideration:

 A brief description of the business to assess more possible factors which could
affect the study
 The part of the business being examined
 The human and economic factor
 The possible solutions to the problem

32 | P a g e
At this level, the concern is whether the proposal is both technically and legally feasible
(assuming moderate cost).

The technical feasibility assessment is focused on gaining an understanding of the present


technical resources of the organization and their applicability to the expected needs of the
proposed system. It is an evaluation of the hardware and software and how it meets the
need of the proposed system.

Legal feasibility

It determines whether the proposed system conflicts with legal requirements, e.g., a data
processing system must comply with the local data protection regulations and if the
proposed venture is acceptable in accordance to the laws of the land.

Operational feasibility study

Operational feasibility is the measure of how well a proposed system solves the
problems, and takes advantage of the opportunities identified during scope definition and
how it satisfies the requirements identified in the requirements analysis phase of system
development.

The operational feasibility assessment focuses on the degree to which the proposed
development project fits in with the existing business environment and objectives with
regard to development schedule, delivery date, corporate culture and existing business
processes.

To ensure success, desired operational outcomes must be imparted during design and
development. These include such design-dependent parameters as reliability,
maintainability, supportability, usability, reducibility, disposability, sustainability,
affordability and others. These parameters are required to be considered at the early
stages of design if desired operational behaviors are to be realized. A system design and
development requires appropriate and timely application of engineering and management
efforts to meet the previously mentioned parameters. A system may serve its intended
purpose most effectively when its technical and operating characteristics are engineered
into the design. Therefore, operational feasibility is a critical aspect of systems
engineering that needs to be an integral part of the early design phases.

Time feasibility

A time feasibility study will take into account the period in which the project is going to
take up to its completion. A project will fail if it takes too long to be completed before it
is useful. Typically this means estimating how long the system will take to develop, and

33 | P a g e
if it can be completed in a given time period using some methods like payback period.
Time feasibility is a measure of how reasonable the project timetable is. Given our
technical expertise, are the project deadlines reasonable? Some projects are initiated with
specific deadlines. It is necessary to determine whether the deadlines are mandatory or
desirable.

Financial feasibility

In case of a new project, financial viability can be judged on the following parameters:

 Total estimated cost of the project


 Financing of the project in terms of its capital structure, debt to equity ratio and
promoter's share of total cost
 Existing investment by the promoter in any other business
 Projected cash flow and profitability

The financial viability of a project should provide the following information

 Full details of the assets to be financed and how liquid those assets are.
 Rate of conversion to cash-liquidity (i.e., how easily the various assets can be
converted to cash).
 Project's funding potential and repayment terms.
 Sensitivity in the repayments capability to the following factors:
o Mild slowing of sales.
o Acute reduction/slowing of sales.
o Small increase in cost.
o Large increase in cost.
o Adverse economic conditions.

34 | P a g e
SYSTEM ANALYSIS AND DESIGN

SYSTEM ANALYSIS

Identification of the User’s Needs


To decide upon the goals and objectives of the new system to be developed, needs of the
user/patient and administrator were surveyed. From the database to be maintained to the
information to be exchanged, everything is supposed to work as per its user’s
requirements.
Feasibility Study
The main goal of the feasibility study is to test the Feedback Managements, social and
economic needs to produce a simple and interactive web based Feedback Management
application. In this, an outline design of system requirements in all prospects, alternative
solutions of problems, need of people concerned, impact of the web application and cost
evaluation of the application to be developed are considered.
Economic and Technical Analysis
Economic analysis works to justify the capital layout of the project in terms that, it will
improve profit, reduce expenditure and expenses or improve the quality of service, which
all result in increased profits. In technical analysis, we are supposed to evaluate the
technical benefits of the system concept, and collect information about performance,
reliability, maintainability and effectiveness.
Allocation
After we have completed the analysis task, we considered the various alternative
solutions possible to meet the requirements and cost of the system. For each alternative
solution, the cost and benefits were examined before deciding one of the alternatives.

DESIGN

A design for a software product should provide the information about the desired output,
required environment and economic conditions etc. So, a design can also be regarded as a
detailed plan for a solution to a problem.

35 | P a g e
To follow the design requirements and criteria, we followed a generic design process
whose steps can be described in the following diagram. In this process, design proceeds
in levels and each level is based upon the outcome of the other. At the completion of each
step, reviews are planned to verify the outcome of each step.

Previous Design Level

Data collection
Problem description
Evaluation criteria

Review

Realizations Revise

Review

Evaluate
Evaluation Criteria

Review

No
OK

Yes

Specify Formally

Proceed to Next Design Level

36 | P a g e
SYSTEM PLANNING(PERT CHART)
PERT stands for Program Evaluation Review Technique, which is a project
management tool, used to schedule, organize, and coordinate tasks within a project.

A PERT chart presents a graphic illustration of a project as a network diagram consisting


of numbered nodes (either circles or rectangles) representing events, or milestones in the
project linked by labeled vectors (directional lines) representing tasks in the project. Like
Gantt chart PERT chart makes use of tasks. Like milestone charts, it shows achievements.

PERT chart uses paths and events to show the interrelationship of project activities. Pert
make use of tasks and it shows the achievements
 Terminal achievements called EVENTS.
 ARROWS are used to show represent task.
 CIRCLES represent the beginning or completion of the task.

It also helps in determining the critical path of the project and establishes most likely
time estimates for individual tasks by applying statistical Models. The direction of the
arrows on the lines in the pert chart indicates the sequence of tasks.
The EVENTS of our project are shown in the following table:
1. Starting phase
2. Recognition of need – Problem Definition
3. Analysis & Feasibility Study
4. Designing and Coding phase
5. Database Design
6. Front-End Design
7. Back-End Design
8. Testing
9. Documentation
10. Ending phase

37 | P a g e
38 | P a g e
METHODOLOGY ADOPTED
To develop the application, we needed a simple process model that could be used to
guide us through a proper methodology towards our project’s development. We followed
the Waterfall Model for that purpose to develop an effective and efficient application.

Waterfall model is the simplest process model which has dominated software
development for a number of years. It centers on planned work and is best suited for
projects where requirementscan be clearly defined. It groups development activities into
independent steps that are carried out in a systematic sequence one after the other i.e.
they are organized in a linear fashion of consecutive phases.
The sequence of major phases performed in our project included:-

Fig: Waterfall Model

39 | P a g e
Concept Formation
This phase is divided into two sub-phases that include Problem Definition and Feasibility
Study. Problem definition provides a broad statement of user requirements, or what the
user expect from the software to do and thus sets the direction for the whole project.
Feasibility study proposes one or more conceptual solutions to the problem set for the
project. These solutions also indicate what input will be needed by the software and what
will be the output produced.

Developing Software Specification


This software specification development step contains the following activities:-
 Producing a detailed analysis model describing how the current software works
and what it does,
 Using the statement of requirements together with the more detailed requirement
analysis, to state what is needed from the new software by a requirement model,
 Producing a high-level description of various requirements.

Software Design
In this phase, various features of a software are included that are data structures, software
architecture, interface representation and algorithmic details. Designers must also select
the equipment needed to develop the software. It proceeds in two steps:
 Preliminary Design: Identifies the main architecture of the proposed software
 Detailed Design: Database and program modules are designed and detailed user
procedures are documented.

Coding and Unit Testing


During this phase, the software designed modules are converted into a set of programs or
program units in a specific programming language. Such programs are unit tested and
interfaces are developed among them. Unit testing is important to make sure that all
modules are error-free once they are put into operations.

40 | P a g e
Software Integration and testing
After building the code and performing unit testing, the individual program units are
integrated to build the software as a whole. Then integration testing is performed to
ensure that all software requirements have been met or not.

Release, Implementation and Maintenance


In this phase, the software is delivered to the customer. It is installed at user site and put
into practical use. Change may occur after delivery which is generally called
maintenance. It is necessary to eliminate and correct the errors which were not discovered
during its working life and tune the system to any variation in its working environment.

41 | P a g e
SYSTEM IMPLEMENTATION
Once the Web application has been prepared, it is delivered to its user. The user then can
implement that application at his site to bring that into use. But for implementation, the
user must require certain tools, platform and languages for proper functioning of the
application.

Various tools/platform and languages required for implementation of Online Feedback


Management System includes:-

1. Operating System

Online Feedback Management Systemcan easily run on Windows NT/XP,


Windows 7/Vista, Windows 8 and upper versions of Windows. Besides it
can also work upon Unix and Linux platforms.

2. Front End

A web browser like Internet explorer, Mozilla Firefox is required to run


this application at both administrator and client (User) side.

3. Back End

MySQL is required as database to function at the back end of this


application which would be used to store the complete database record of
the Feedback, and also for the new Camps and for Contacting.

4. Network

Network connectivity is required between the server and the client, i.e. the
administrator and users/patients. Any Local Area Network Connection
will be able to support this connectivity.

42 | P a g e
HARDWARE AND SOFTWARE REQUIREMENTS

HardwareRequirements

Server Side:-

 Processor :- 3.6 GHz


 RAM :- 2 GB
 Hard Disk :- 80 GB
Client Side:-
 Processor :- 2.40 GHz
 RAM :- 1 GB
 Hard Disk :- 20GB

Software Requirements
Server Side:-
 Operating System :- Windows/Open Source OS
 Web Server :- PHP 7.0
 Front End :- PHP, HTML, CSS, JavaScript
 Back End :- MySQL
Client Side:-
 Operating System :- Windows 7 or any compatible
Operating System.
 Web Browser :- IE 7.0 or any compatible browser.

Development Side Hardware and software requirements:-


 PHP (create core Functionality).
 Coral Draw (For creating Designs).
 HTML (for Creating Web Functionality).
 CSS (for website design and theme).
 JavaScript (Basic Validation).
 Operating System.
 1GB RAM.

43 | P a g e
 Tomcat Apache.
 MySql.
 Eclipse.

SYSTEM MAINTAINANCE

After a system is developed, delivered and implemented, the main course that comes into
action is its maintenance. System maintenance is a very important phase of project
development. With changing time, technologies, hardware as well as the environment,
everything is undergoing a major change. To meet such changes, the system developed
must be efficient enough to undergo such changes without destroying the main objective
of the system.

Online Feedback Management System is, therefore, developed using easy to maintain
techniques. A large time and effort has been used to embed the maintainability features in
our application. Now, our program contains the following features with respect to its
maintenance:-

 Extendibility: We have prepared a modular application. For adding any more


service to the application, we simply need to add modules without changing the
complete project code.

 Reusability: Any module of the application or the complete application can be


reused into any other application whenever required, to produce similar effects
in some other application.

 Understandability: The code of the application is written in the simplest and


easy to understand manner, with comments provided wherever required, so that
44 | P a g e
any person can easily get familiar to the code if he has knowledge of the
languages used.

 Deletion: Any module, if not required, can be removed from the application
code to enhance code compaction feature.

 Portability: This application is developed upon the PHP and MySQL which are
easy to import anywhere, thereby making the application a portable one.

 Compatibility: The application is fully compatible with most of the operating


systems, including Windows, Macintosh, Unix and Linux.

 Reliability: One can easily rely on this application for maintenance of stock and
making of complaints.

 Availability: The application can be made available to anyone simply by


installing the application on one’s computer.

 Security: The application provides huge security prospects by asking for


username and passwords each time a person wants to view information. Besides
we have also created sessions for each use and applied validations to each of our
module.

45 | P a g e
COST AND BENEFITS ANALYSIS

COST ANALYSIS

Cost analysis is particularly important because it decides the execution boundaries of the
project in terms of resources that will be made available for the project and whether the
project is considered feasible in terms of cost. There exist a number of alternatives to
accomplish the reliable cost estimations. Any ofthese alternatives will show its affect
when used with the data of the past projects.

A number of cost elements are considered while analyzing the total cost of application
development. These include human resources, reusable software components and
hardware/software tools. Besides, cost of documentation, operations, implementation,
delivery and maintenance is also considered.

Various factors considered by us to develop cost estimation and check project’s


feasibility include:-

 Hardware Cost: Hardware costs relates to the lease of the computer and
peripherals like printer, disk drive, compact disk.

 Personnel Cost: This cost includes salaries of the programmers and incentives
paid for health insurance, vacation time, sick pay etc. cost incurred during the
development of a system are one-time cost and are labeled development cost.

 Facility Cost:Facility costs are expenses incurred in the preparation of the


physical site where the application or computer will be in operation. This includes
lighting, air condition, telephone, internet etc.

 Implementation Cost: Implementation costs include all costs with day-to-day


operation of the system.

46 | P a g e
 Supply Cost:Supply costs are variable costs that increase with increased use of
the paper, ribbons, pins, stapler, pen, Pencil etc.

 Maintenance Cost: This is the cost set in advance related to possible future
prospects of an application in its extension or in its improvement or in removal of
errors.
Considering all such cost estimations, we found our project feasible to develop and
maintain and hence can be implemented easily.

BENEFITS ANALYSIS

After the cost analysis has been done, we also need to execute the benefits analysis of our
project so as to ensure the efficiency and effectiveness of our project. This includes
checking out whether or not our project is helping in minimizing the work done by any
professional in one way or the other.

For carrying out the benefits analysis, we compared the work done by Feedback
Management before the use of this application and after its usage. This was done to
compare the time and effort of the Feedback Management involved, before and after our
project usage.

The analysis discovered the following points:-

 This Web application prevents a lot of paper work done by the Feedback
Managements in maintenance of the computer stock.

 It also eliminates the need of looking out for record files whenever a point
information is required.

 The Web application eases out the Feedback Managements from the trouble of
going to the administrator for reporting every complaint faced by any computer.

47 | P a g e
 It also eliminates the need of maintaining a complaint register by the
administrator to check out for complaints and suggestions.

 It also helps the administrator to convey information to all users and patients from
one point.

 It provides an easy updating of records by the user whenever a new update made
to the Online Feedback Management System.

 The application program also enables the administrator to easily, without any
pain, add or delete any data from the database.

 Most importantly, this application makes the whole work done in a highly
organized, effective and secure manner.

Considering all such benefits, we found the project highly beneficial for the management
of Feedback and user and patients. And thus it is a must have to make this work secure
and organized.

48 | P a g e
PROJECT LIFE CYCLE

A project life cycle is an abstract representation of gradual development and evolution of


the project that undergoes a series of sequential or concurrent steps of the project
development process. Each of these steps results in the development of a software
product which may be either a minor or major component of the software system in
contribution to the completion of the system. Each step requires some input and produces
some form of output which further becomes input of the next step. This process goes on
in stepwise fashion until our project is developed fully.

The project development life cycle consists of the following steps:-

Project Planning & Requirement Analysis

Design

Coding

Unit Testing

System Testing

Operation and Maintainance

Now each of these steps can be explained in detail:-

Project Planning &Requirement Analysis


49 | P a g e
This is the first and primary step of development cycle which analyzes the requirements
of the software. Requirement, here, means a condition or capability needed by the
administrator to solve the problem of Feedback Managementmanagement. To analyze the
requirements, we identified and documented the exact requirements of the software
which can be fulfilled by the communication established by us with the administrator. In
that communication, real and actual requirements required by the software were
discussed.

Design
Once we had completely understood the requirements of the user/patient and the
administrator, we proceeded to the designing of the software. This step is divided into
two-level designing; named as,
 Preliminary design or high level design and
 Detailed design or low-level design.
Preliminary design concerns the brief overview of the software architecture and structure
whereas detailed design is its refined view that include designing of each module in
detail.

Coding
In this phase, we produced the actual code that will be delivered to administrator as the
operational product. To develop this code, we used HTML as the front end scripting
language and PHP and CSS as the back end scripting languages with MySQL as the
database.

Unit Testing
To make our project organized, effective and secure, we worked by creating modules and
combining them together. Once each module is completed with its code, it is tested
individually in this phase. It is also called Unit Testing. This testing is performed for each
of the module separately.

System Testing
50 | P a g e
Once we had developed all the modules and tested them individually, we collected and
integrated them appropriately with each other in this phase. Interfaces were then provided
between them, and then the whole system was tested fully.

Operations and Maintenance


Once we had developed and tested our project fully, we delivered it to the server
administrator in this phase. Server administrator then implemented it on the network of
the college. After delivery and implementation, any modification or changes can be made
to help in maintenance.

On above all these steps, we completely developed our project and have it implemented
on the site.

ER-DIAGRAM

DATA FLOW DIAGRAMS


51 | P a g e
0 - LEVEL DFD

1-LEVEL DFD

52 | P a g e
2-LEVEL DFD

53 | P a g e
INPUT–OUTPUTSCREEN DESIGNS:-

Homepage

54 | P a g e
User Registration Form

“About” page

55 | P a g e
Login Page

Contact Page

56 | P a g e
Admin Dashboard:

57 | P a g e
STUDENT’S PAGES

58 | P a g e
Faculty Pages:

59 | P a g e
60 | P a g e
Processes Involved

In between the user visits our Web application, “Online Feedback Management System”
and leaves out, a huge process is involved in between. This process includes:-

 Managing databases

 Maintenance of sessions

 Validation of information

 Collection of information

 Providing information

 Updating of databases

All these processes involve effort to be done on the back end side. Users won’t be able to
get even a hint of that. For them, the whole process will seem to be in quite an easy and
natural flow.

These processes mainly require several databases to be maintained. The various database
tables used in our project can be given as under:-

Each of these tables can be viewed separately to show all its fields and kinds of entries it
supports, as:-

61 | P a g e
Database view:-

Admin Table:-

Contact us:-

62 | P a g e
Feedback Table:-

UsersTable:-

63 | P a g e
BASIC PROJECT CODE

Homepage –

PHP Code

<?php
session_start();
require('dbconfig.php'); ?>
<!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">
<meta name="description" content="">
<meta name="author" content="">
<title>Online feedback System</title>

<!-- Bootstrap Core CSS -->


<link href="css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->


<link href="css/modern-business.css" rel="stylesheet">

<!-- Custom Fonts -->


<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

</head>

64 | P a g e
<body>

<!-- Navigation -->


<nav class="navbarnavbar-default navbar-fixed-top" role="navigation"
style="background:purple">
<div class="container" >
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-
example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php" style="color:#FFFFFF">Online feedback
System</a>

</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="navnavbar-navnavbar-right">

<li style="color:#FFFFFF">
<a style="color:#FFFFFF" href="index.php"><i class="fafa-home fa-fw"></i>Home</a>
</li>

<li style="color:#FFFFFF">
65 | P a g e
<a style="color:#FFFFFF" href="index.php?info=about"><i class="fafa-home fa-
fw"></i>About</a>
</li>

<li><a style="color:#FFFFFF" href="index.php?


info=registration"><i class="fafa-sign-out fa-fw"></i>Registration</a></li>

<li class="dropdown">
<a style="color:#FFFFFF" href="#" class="dropdown-toggle" data-toggle="dropdown"
href="#"><i class="fafa-sign-in fa-fw"></i>Login
<span class="caret"></span></a>
<ul class="dropdown-menu">

<li><a href="index.php?info=login">Student</a></li>
<li><a href="index.php?info=faculty_login">Faculty</a></li>
<li><a href="admin">Admin</a></li>
</ul>
</li>
<li>
<a style="color:#FFFFFF" href="index.php?info=contact"><i class="fafa-phone fa-
fw"></i>Contact</a>
</li>

</ul>
</div>
<!-- /.navbar-collapse -->

66 | P a g e
</div>
<!-- /.container -->
</nav>

<?php
@$info=$_GET['info'];
if($info!="")
{

if($info=="about")
{
include('about.php');
}

else if($info=="contact")
{
include('contact.php');
}

else if($info=="login")
{
include('login.php');
}

else if($info=="faculty_login")
{
include('faculty_login.php');
}

67 | P a g e
else if($info=="registration")
{
include('registration.php');
}
}
else
{
?>
<!-- slider start -->
<header id="myCarousel" class="carousel slide">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>

<!-- Wrapper for slides -->


<div class="carousel-inner">
<div class="item active">

<div class="fill" style="background-image:url('images/feedback.jpg');"></div>


<div class="carousel-caption">

</div>
</div>

<div class="item">

68 | P a g e
<div class="fill" style="background-image:url('images/feedback1.jpg');"></div>
<div class="carousel-caption">

</div>
</div>

<div class="item">
<div class="fill" style="background-image:url('images/feedback3.jpg');"></div>
<div class="carousel-caption">

</div>
</div>

<!-- Controls -->


<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="icon-prev"></span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="icon-next"></span>
</a>
</header>
<!-- slider -->
<!-- Page Content -->
<div class="container">

<div class="row">
<div class="col-lg-12">
<div class="col-sm-10" style="margin-top:60px;margin-
bottom:80px">
<h2>About Faculty feedback System</h2>

69 | P a g e
Student Feedback system for College in PHP(SOurce code)
Here we have developed the a faculty feedback system, which is generally used in the
college to rate the faculty based on the performance...Here we have 2 modules such as
administrator, student.

Administrator is the one who creates the student account by adding all student info and
assigning the username and password.
Admin als0 checks the result once all students entered the feedback..
We can start the development from the login page, where we have given the option to
login as admin and student...Here since we have only one admin account, so no need to
create the a database to store admin info...so the admin username is "admin" and
password is "sandeep"...select admin in the radio button and login

You can perform all admin actions such as login to the account and check result..

I fyou entered the student user and password and selected student option, then it will
show all student information and let you enter the feedback based on the subject..

Before we can look into the php code, you need to create a database called "feed" with
two tables in it..one as student and another one as take

</div>
<?php } ?>
</div>

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

<div class="navbar-fixed-bottom navnavbar-inverse text-center"


style="padding:15px;height:40px; background:purple">

70 | P a g e
<span style="color:#FFFFFF">&copy All Rights Reserved by <a
href="#"> AS Company 2019</a></span>
</div>
<!--jQuery -->
<scriptsrc="css/jquery.js"></script>

<!-- Bootstrap Core JavaScript -->


<scriptsrc="css/bootstrap.min.js"></script>

<!-- Script to Activate the Carousel -->


<script>
$('.carousel').carousel({
interval: 5000 //changes the speed
})
</script>

</body>

</html>

CSS Code
html,body
{
font-family:calibri;
font-size: 18px;
margin:0px;
padding:0px;
height:100%;
width:100%;

71 | P a g e
}
.header_img
{
width:100%;
margin-top:0px;
}
.box1
{
margin-left:10px;
padding:5px;
float:left;
border:1px solid;
height:450px;
width:32%;
text-align: justify;
}
.box2
{
margin-right:10px;
padding:5px;
float:right;
border:1px solid;
top:400px;
height:450px;
width:32%;
text-align: justify;
}
.box3
72 | P a g e
{
margin: auto;
padding:5px;
border:1px solid;
top:400px;
height:450px;
width:32%;
text-align: justify;
}
.box4
{
margin: 0px auto;
padding-top: 2px;
text-align: justify;
padding: 10px;
height:450px;
width:1315px;
}
.mrq :hover
{
color:red;
}

Registration Form –

PHP Code

<DOCTYPE! HTML>
<head>

73 | P a g e
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
<title>User Register</title>
<link rel="stylesheet" href="css/user register.css" type="text/css">
</head>

<body background="img/bg3.jpg" style="background-size:fill;">

<?php
include 'header.php';
?>
<div class="bgbox">
<center>
<table border=0 height=600px width=800px cellpadding=6px>
<form name="form1" action="user_register.php" method="POST">
<thead><font face="Blue" color="red" style="margin:10px;"><h1><b>User Registration
Form</b></h1></font></thead>
<tr>
<td rowspan="12"><imgsrc="img/bg1.jpg" height="540px" width="250px"></td>
</tr>
<tr>
<td><input type="text" name="name" size=50 placeholder="Enter your name"
required></td>
</tr>
<tr>
<td><b>Gender : </b>
<select name="gender" required>
<optgroup label="Select your Gender">
<option>Male</option>
<option>Female</option>
</optgroup>
</select>

74 | P a g e
</td>
</tr>
<tr>
<td><b>Date of Birth</b><input type="date" name="DOB" required ></td>
</tr>
<tr>
<td><input type="text" name="age" size=50 placeholder="Enter your age"
required></td>
</tr>
<tr>
<td><input type="text" name="mobile" size=50 placeholder="Enter your 10 digit mobile
number" required></td>
</tr>
<tr>
<td><b>Feedback Group : </b>
<select name="Feedback_group" required>
<optgroup label="Select your Feedback Group">
<option>A+</option>
<option>A-</option>
<option>B+</option>
<option>B-</option>
<option>AB+</option>
<option>AB-</option>
<option>O+</option>
<option>O-</option>
</optgroup>
</select>
</td>
</tr>
<tr>
<td><input type="email" name="email" size=50 placeholder="Enter your email address
here." required></td>
75 | P a g e
</tr>
<tr>
<td><input type="password" name="password" id="ps1" size=50 placeholder="Enter
password." required></td>
</tr>
<tr>
<td><input type="password" name="c_password" id="ps2" size=50
placeholder="Confirm your password" required></td>
</tr>
<tr>
<td><input type="submit" value="Register" name="submit"
class="confirm"><input type="Reset"
value="Reset"></td>
</tr>
</form>
</table>
</center>
</div>
<center><a href="userlogin.php">Login here, If you're already
registered.</a></center>

<?php
include 'footer.php';
?>
</body>
<script>
var password = document.getElementById("ps1"), confirm_password =
document.getElementById("ps2");

functionvalidatePassword(){
if(password.value != confirm_password.value)

76 | P a g e
{
confirm_password.setCustomValidity("Passwords Don't Match");
}
else
{
confirm_password.setCustomValidity('');
}
}

password.onchange = validatePassword;
confirm_password.onkeyup = validatePassword;
</script>
</html>

PHP Connection Code


<?php

function connect()
{
$dbhost="localhost";
$dbuser="root";
$dbpass="";
$dbname="SAS_Feedback_bank_management_system";
# Create Connection
$conn=new mysqli($dbhost,$dbuser,$dbpass,$dbname)
or die($conn->connect_error);
return $conn;
}
$conn=connect();
$name=$conn->real_escape_string($_POST['name']);
77 | P a g e
$gender=$conn->real_escape_string($_POST['gender']);
$DOB=$conn->real_escape_string($_POST['DOB']);
$age=$conn->real_escape_string($_POST['age']);
$mobile=$conn->real_escape_string($_POST['mobile']);
$Feedback_group=$conn->real_escape_string($_POST['Feedback_group']);
$email=$conn->real_escape_string($_POST['email']);
$password=$conn->real_escape_string($_POST['password']);
$c_password=$conn->real_escape_string($_POST['c_password']);
$query="INSERT into rg_form(name, gender, DOB, age, mobile, Feedback_group,
email, password, c_password)
VALUES('" .$name . "','" .$gender . "','" .$DOB . "','" .$age . "','" .$mobile . "','" .
$Feedback_group . "','" .$email . "','" .$password . "','" .$c_password . "')";
$success=$conn->query($query);
if(!$success)
{
die("Could not enter data: ".$conn->error);
}
echo "<script> alert('You are Successfully Registered')</script>";
$conn->close();
?>
<?php
include 'userlogin.php';
?>

CSS Code

html,body
{

78 | P a g e
font-family:calibri;
margin:0px;
padding:0px;
height:100%;
width:100%;
}
.bgbox
{
position: relative;
height: 750px;
width:800px;
margin:50px auto;
box-shadow: -0px -0px 10px 10pxrgba(27, 27, 231, 0.562);
background: white;
}
.bgbox input
{
width:100%;
height:35px;
margin-bottom: 10px;
border-radius: 0px;
padding:5px;
}
.bgboxinput[type="submit"]
{
border:none;
outline:none;
height:40px;
79 | P a g e
color:#fff;
font-size:16px;
background:#aa0505;
cursor: pointer;
border-radius: 0px 0px 20px 20px;
}
.bgboxinput[type="reset"]
{
border:none;
outline:none;
height:40px;
color:#fff;
font-size:16px;
background:#aa0505;
cursor: pointer;
border-radius: 20px 20px 0px 0px ;
}
.bgboxinput[type="submit"]:hover
{
background:rgb(236, 81, 96);
color:black;
}
.bgboxinput[type="reset"]:hover
{
background:rgb(236, 81, 96);
color:black;
}

80 | P a g e
Feedback –

PHP Code

<DOCTYPE! HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Search</title>
<link rel="stylesheet" href="css/search.css" type="text/css">
</head>

<body background="img/bg3.jpg">
<?php
include 'header.php';
?>

<center>
<div class="login">
<h1><font face="blue">Search for Feedback</font></h1>
<form action="search query.php" method="POST">
<b>Select type of Feedback required :-</b><br><br>
<select name="search">
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>

81 | P a g e
<option value="O+">O+</option>
<option value="O-">O-</option>
</select><br><br>
<input type="submit" value="Search Now">
</form>
</div>
</center>
<?php
include 'footer.php';
?>
</body>
</html>
PHP Connection Code

<html>
<head>
<title>Search for Feedback_Group</title>
</head>
<body style="background-image:url(img/bg3.jpg);">
<?php
$conn=mysqli_connect("localhost:3306","root","","SAS_Feedback_bank_management_s
ystem");
$msg = "";
$msg.='<center><h3>All Details According to Feedback Group</h3><table border="1"
cellpadding=5px >
<tr>
<th>NAME</th>
<th>EMAIL-ID</th>

82 | P a g e
<th>MOBILE NO</th>
<th>GENDER</th>
<th>FEEDBACK GROUP</th>

</tr>';
?>
<?php
$msg.="";
$bg=$_POST["search"];
$query = "select * from rg_form where Feedback_group='$bg'";
$row = mysqli_query($conn, $query);
while($res=mysqli_fetch_assoc($row))
{
$msg.= '<tr>';
$msg.= '<td>'.$res["name"].'</td>';
$msg.= '<td>'.$res["email"].'</td>';
$msg.= '<td>'.$res["mobile"].'</td>';
$msg.= '<td>'.$res["gender"].'</td>';
$msg.= '<td>'.$res["Feedback_group"].'</td>';

$msg.= '</tr>';
}
$msg.='</table><a href="search.php">Cancel</a></center>';
?>
<div>
<br>
<br>

83 | P a g e
<?php
$myfile = fopen("search.txt", "w") or die("Unable to open file!");
fwrite($myfile, $msg);
fclose($myfile);

$myfile = fopen("search.txt", "r") or die("Unable to open file!");


echofread($myfile,filesize("search.txt"));
fclose($myfile);
?>
</div>

</body>
</html>

CSS Code

html,body
{
font-family:calibri;
font-size: 18px;
margin:0px;
padding:0px;
height:100%;
width:100%;
background-size:cover;
}
.login
{
background-color: rgba(226, 69, 215, 0.553);
color:rgb(255, 255, 255);
84 | P a g e
align-items: center;
width:350px;
height:300px;
margin-top: 120px;
margin-bottom: 150px;
border-radius:10px;
box-shadow: -0px -0px 10px 10pxrgba(27, 27, 231, 0.459);
}
.login select
{
height:40px;
width:200px;
font-size: 16px;

}
.login input[type="submit"]
{
border:none;
outline:none;
width:200px;
height:40px;
color:#fff;
font-size:16px;
background:#aa0520;
cursor: pointer;
border-radius: 50px;
}
.login input[type="submit"]:hover
{
background:purple;

85 | P a g e
}

Student Panel Code –

Student Login –

PHP Code

<DOCTYPE! HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>User Login</title>
<link rel="stylesheet" href="css/user login.css" type="text/css">
</head>

<body background="img/bg3.jpg">
<?php
include 'header.php';
?>
<center>
<div class="login">
<h1><font face="blue">User Login</font></h1>
<form action="login.php" method="POST" >
<input type="email" name="user_name" placeholder="Enter your Email_id"
required><br>
<input type="password" name="password" placeholder="Enter password here"
required><br>
<input type="submit" name="submit" value="Sign-in">
<a href="userregister.php" name="register">Register here, If not yet Registered</a>
</form>

86 | P a g e
</div>
</center>

<?php
include 'footer.php';
?>
</body>
</html>

PHP Connection Code

<?php
if(isset($_POST["submit"]))
{
session_start();
$_SESSION['u_name']=$_POST['user_name'];
$a=$_POST["user_name"];
$b=$_POST["password"];
$conn=mysqli_connect("localhost:3306","root","","sas_Feedback_bank_management_sy
stem");
$retval=mysqli_query($conn,"select * from rg_form where email='$a' and
Password='$b'");
if(mysqli_num_rows($retval)>0)
{
header("location:d welcome user.php");
}
else
{
echo "<script> alert('invalid user');window.location='Userlogin.php';</script>";
}
87 | P a g e
}
else if(isset($_POST["register"]))
{
header("location:userregister.php");
}
?>

CSS Code

@charset "utf-8";
/* CSS Document */

body
{
font-family:calibri;
margin:0px;
padding:0px;
height:100%;
width:100%;
background-size: cover;
}
.login
{
background-color: rgba(226, 69, 213, 0.404);
color:rgb(255, 255, 255);
align-items: center;
width:400px;
height:100%px;
margin-top: 150px;
margin-bottom: 200px;
border-radius:10px;
box-shadow: -0px -0px 10px 10pxrgba(27, 27, 231, 0.459);
88 | P a g e
}
.login input
{
width:90%;
height:35px;
margin-bottom: 10px;
border-radius: 0px;
}
.login input[type="submit"]
{
border:none;
outline:none;
height:40px;
color:#fff;
font-size:16px;
background:#aa0520;
cursor: pointer;
border-radius: 15px 15px 0px 0px;
}
.login input[type="submit"]:hover
{
background:purple;
}
.login input[type="reset"]
{
border:none;
outline:none;
height:40px;
color:#fff;
font-size:16px;
background:#aa0520;
89 | P a g e
cursor: pointer;
border-radius: 15px 15px 0px 0px;
}
.login input[type="reset"]:hover
{
background:purple;
}

Faculty Panel –

PHP Code

<?php
include 'dheader.php';
?>
<HTML>
<head>
<title>Welcome User</title>
</head>
<body>
<center>
<imgsrc="login/welcome.jpg" width="800px" height="300px" style="margin-
top:50px;">
</center>
</body>
</HTML>
<?php
include 'dfooter.php';
?>

CSS Code

html,body
90 | P a g e
{
font-family:calibri;
font-size: 18px;
margin:0px;
padding:0px;
height:100%;
width:100%;
}
.bg_header
{

margin:0px auto;
height: 150px;
width: 100%;
border:none;
background: rgba(0, 0, 0, 0.911);
}
.buttons
{
float:right;
padding-right:200px;
margin:auto;
}
.buttons input[type="button"]
{
height:25px;
background-color:rgba(236, 47, 47, 0.705);
color: white;
border:0px solid;
border-radius: 0px;
}
.buttons input[type="button"]:hover
91 | P a g e
{
background-color: white;
color: black;
border:0px solid;
border-radius: 0px;
transition: all 0.5s;
}

View Profile –

PHP Code

<?php
include 'dheader.php';
?>
<html>
<head>
<title>View Profile</title>
</head>
<body>
<?php
session_start();
if(!isset($_SESSION['u_name']))
{
header("location: login.php");
}
$conn=mysqli_connect("localhost:3306","root","","SAS_Feedback_bank_management_s
ystem");
$msg = "";
$msg.='<center><h3>Your profile details are as follows :-</h3><table border="1"
cellpadding=5px style="background-color:skyblue;">';
?>

92 | P a g e
<?php
$msg.="";
$email=$_SESSION["u_name"];
$query = "select * from rg_form where email= '$email'";
$row = mysqli_query($conn, $query);
while($res=mysqli_fetch_assoc($row))
{

$msg.= '<tr><th>Name</th><td>'.$res["name"].'</td></tr>';
$msg.= '<tr><th>Gender</th><td>'.$res["gender"].'</td></tr>';
$msg.= '<tr><th>Date Of Birth</th><td>'.$res["DOB"].'</td></tr>';
$msg.= '<tr><th>Age</th><td>'.$res["age"].'</td></tr>';
$msg.= '<tr><th>Mobile</th><td>'.$res["mobile"].'</td></tr>';
$msg.= '<tr><th>Feedback Group</th><td>'.
$res["Feedback_group"].'</td></tr>';
$msg.= '<tr><th>E-mail</th><td>'.$res["email"].'</td></tr>';
$msg.= '<tr><th>Password</th><td>'.$res["password"].'</td></tr>';

}
$msg.='</table><a href="d welcome user.php">User Panel</a></center>';
?>

<div>
<br>
<br>
<?php
$myfile = fopen("user.txt", "w") or die("Unable to open file!");
fwrite($myfile, $msg);
fclose($myfile);

93 | P a g e
$myfile = fopen("user.txt", "r") or die("Unable to open file!");
echofread($myfile,filesize("user.txt"));
fclose($myfile);
?>
</div>

</body>
</html>
<?php
include 'dfooter.php';
?>

Update Profile –

PHP Code

<?php
include 'dheader.php';
?>
<html>
<head>
<title>View Profile</title>
</head>
<body>
<?php
session_start();
if(!isset($_SESSION['u_name']))
{
header("location: login.php");
}
$conn=mysqli_connect("localhost:3306","root","","SAS_Feedback_bank_management_s
ystem");
$msg = "";
94 | P a g e
$msg.='<center><h3>Your profile details are as follows :-</h3><form action="#"
method="post"><table border="1" cellpadding=5px style="background-
color:skyblue;">';
?>
<?php
$msg.="";
$email=$_SESSION["u_name"];
$query = "select * from rg_form where email= '$email'";
$row = mysqli_query($conn, $query);
while($res=mysqli_fetch_assoc($row))
{

$msg.= '<tr><th>Name</th><td><input type=text value='.


$res["name"].' name=name /></td></tr>';
$msg.= '<tr><th>Gender</th><td><input type=text
value='.$res["gender"].' name=gender /></td></tr>';
$msg.= '<tr><th>Date Of Birth</th><td><input type=text
value='.$res["DOB"].' name=DOB /></td></tr>';
$msg.= '<tr><th>Age</th><td><input type=text value='.
$res["age"].' name=age /></td></tr>';
$msg.= '<tr><th>Mobile</th><td><input type=text
value='.$res["mobile"].' name=mobile /></td></tr>';
$msg.= '<tr><th>Feedback Group</th><td><input
type=text value='.$res["Feedback_group"].' name=Feedback_group /></td></tr>';
$msg.= '<tr><th>E-mail</th><td><input type=text value='.
$res["email"].' name=email /></td></tr>';
$msg.= '<tr><th>Password</th><td><input type=text
value='.$res["password"].' name=password /></td></tr>';

95 | P a g e
$msg.='<tr><td><input type="submit" value="Update Profile"
name=sbmt></td></tr></table></form><a href="d welcome user.php">User
Panel</a></center>';
$a=" ";
$b=" ";
$c=" ";
$d=" ";
$e=" ";
$f=" ";
$g=" ";
$h=" ";
if(isset($_POST['name']))
{
$a=$_POST['name'];
}
if(isset($_POST['gender']))
{
$b=$_POST['gender'];
}
if(isset($_POST['DOB']))
{
$c=$_POST['DOB'];
}
if(isset($_POST['age']))
{
$d=$_POST['age'];
}
if(isset($_POST['mobile']))
{
$e=$_POST['mobile'];
}
if(isset($_POST['Feedback_group']))
96 | P a g e
{
$f=$_POST['Feedback_group'];
}
if(isset($_POST['email']))
{
$g=$_POST['email'];
}
if(isset($_POST['password']))
{
$h=$_POST['password'];
}
$conn=mysqli_connect("localhost:3306","root","","SAS_Feedback_bank_management_s
ystem");
if(isset($_REQUEST["sbmt"]))
{
$sql="update rg_form set
name='$a',gender='$b',DOB='$c',age=$d,mobile=$e,Feedback_group='$f',password='$h'
where email='$g'";
if(mysqli_query($conn,$sql))
{
echo "<script>alert('User Data Update Successfully');</script>";
}
else
{
echo "could not update".mysqli_error($conn);
}
}
mysqli_close($conn);
?>
</html>

<div>
97 | P a g e
<br>
<br>
<?php
$myfile = fopen("user.txt", "w") or die("Unable to open file!");
fwrite($myfile, $msg);
fclose($myfile);

$myfile = fopen("user.txt", "r") or die("Unable to open file!");


echofread($myfile,filesize("user.txt"));
fclose($myfile);
?>
</div>

</body>
</html>
<?php
include 'dfooter.php';
?>

Contact Us –
PHP Code
<?php
include 'dheader.php';
?>
<html>
<head>
<title>Request for Feedback</title>
<link rel="stylesheet" type="text/css" href="login/request.css"
</head>
<body>
<div class="request">
<table>

98 | P a g e
<form method="POST" action="d req.php">
<center>
<h1><font face="blue"><b>Urgent need of Feedback</b></font></h1>
<tr>
<td>Name</td>
<td><input type="text" name="name" placeholder="Enter your full name"
required></td>
</tr>

<tr>
<td>Gender</td>
<td><select name="gender">
<option>Male</option>
<option>Female</option>
</select>
</td>
</tr>
<tr>
<td>Age</td>
<td><input type="text" name="age" placeholder="Enter age" required></td>
</tr>
<tr>
<td>Mobile</td>
<td><input type="text" name="mobile" placeholder="Enter your 10 digit mobile
number." required></td>
</tr>
<tr>
<td>Select Feedback Group : </td>
<td>
<select name="Feedback_group">
<option>A+</option>
<option>A-</option>
99 | P a g e
<option>B+</option>
<option>B-</option>
<option>AB+</option>
<option>AB-</option>
<option>O+</option>
<option>O-</option>
</optgroup>
</select>
</td>
</tr>
<tr>
<td>Email</td>
<td><input type="email" name="email" placeholder="Enter your E-mail address."
required></td>
</tr>
<tr>
<td>Till required date</td>
<td><input type="date" name="till_date" required></td>
</tr>
<tr>
<td>Description</td>
<td><textarea name="description" placeholder="Enter discription of required Feedback."
required></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="Submit"><input type="reset"
value="Reset"></td>

</tr>
<tr>
<td></td>
100 | P a g e
<td><a href="d welcome user.php"><input type="button" value="back to User
Panel"></a></td>
</tr>
</center>
</form>
</table>
</div>
</body>
</html>
<?php
include 'dfooter.php';
?>

PHP Connection Code


<?php

function connect()
{
$dbhost="localhost";
$dbuser="root";
$dbpass="";
$dbname="SAS_Feedback_bank_management_system";
# Create Connection
$conn=new mysqli($dbhost,$dbuser,$dbpass,$dbname)
or die($conn->connect_error);
return $conn;
}
$conn=connect();
$name=$conn->real_escape_string($_POST['name']);
$gender=$conn->real_escape_string($_POST['gender']);
$age=$conn->real_escape_string($_POST['age']);
$mobile=$conn->real_escape_string($_POST['mobile']);
101 | P a g e
$Feedback_group=$conn->real_escape_string($_POST['Feedback_group']);
$email=$conn->real_escape_string($_POST['email']);
$till_date=$conn->real_escape_string($_POST['till_date']);
$description=$conn->real_escape_string($_POST['description']);
$query="INSERT into request_form(name, gender, age, mobile, Feedback_group,
email, till_date, description)
VALUES('" .$name . "','" .$gender . "','" .$age . "','" .$mobile . "','" .$Feedback_group .
"','" .$email . "','" .$till_date . "','" .$description . "')";
$success=$conn->query($query);
if(!$success)
{
die("Could not enter data: ".$conn->error);
}
echo "<script> alert('Your request for Feedback has been sent successfully.')</script>";
$conn->close();
?>
<?php
include 'drequest.php';
?>

About –
<?php
include 'dheader.php';
?>
<html>
<head>
<title>Request for Feedback</title>
<link rel="stylesheet" type="text/css" href="login/view request.css">
</head>
<body>
<div class="view">
<table>

102 | P a g e
<form>
<center>
<h1><font face="blue"><b>Your requests for Feedback</b></font></h1>
<tr>
<td></td>
<td><a href="d Welcome user.php"><input type="button" value="back to User
Panel"></a></td>
</tr>
</center>
</form>
</table>
</div>
</body>
</html>
<?php
include 'dfooter.php';
?>

User Logout –

<?php

session_start();
unset($_SESSION['email']);
session_destroy();
header("Location:home.php");
exit;
?>

Admin Panel Code –

Admin Login –

103 | P a g e
PHP Code

<DOCTYPE! HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Login</title>
<link rel="stylesheet" href="admin login.css" type="text/css">
</head>

<body background="bg.jpg">
<center>
<div class="login">
<h1><font face="blue">Admin Login</font></h1>
<form action="login.php" method="POST" >
<input type="email" name="admin_id" placeholder="Enter your Email_id"
required><br>
<input type="password" name="password" placeholder="Enter password here"
required><br>
<input type="submit" name="submit" value="Sign-in">
</form>

</div>
</center>
</body>
</html>

PHP Connection Code

<?php
if(isset($_POST["submit"]))
{
$a=$_POST["admin_id"];

104 | P a g e
$b=$_POST["password"];
$conn=mysqli_connect("localhost:3306","root","","sas_Feedback_bank_management_sy
stem");
$retval=mysqli_query($conn,"select * from admin where admin_id='$a' and
password='$b'");
if(mysqli_num_rows($retval)>0)
{
header("location: home.php");
}
else
{
echo "<script> alert('invalid Admin');window.location='index.php';</script>";
}
}
?>
CSS Code

@charset "utf-8";
/* CSS Document */

body
{

font-family:calibri;
margin:0px;
padding:0px;
height:100%;
width:100%;
background-size: cover;
}
.login
{
105 | P a g e
padding:20px;
background-color: rgba(226, 29, 113, 0.504);
color:black;
align-items: center;
width:400px;
height:100%px;
margin-top: 150px;
margin-bottom: 200px;
border-radius:10px;
box-shadow: -0px -0px 10px 10pxrgba(27, 27, 231, 0.459);

}
.login input
{
width:90%;
height:35px;
margin-bottom: 10px;
border-radius: 0px;
}
.login input[type="submit"]
{
border:none;
outline:none;
height:40px;
color:#fff;
font-size:16px;
background:#aa0520;
cursor: pointer;
border-radius: 15px 15px 0px 0px;
}
.login input[type="submit"]:hover
{
106 | P a g e
background:purple;
}

Admin Panel–

PHP Code

<?php
include 'header.php';
?>
<HTML>
<head>
<title>Welcome Admin</title>
</head>
<body>
<center>
<imgsrc="welcome.jpg" width="800px" height="300px" style="margin-
top:50px;">
</center>
</body>
</HTML>
<?php
include 'footer.php';?>

Delete or Update User Information –

PHP Code

<?php

include 'header.php';
?>
<!DOCTYPE html>
<html>
107 | P a g e
<head>
<title>DB Test</title>
</head>
<body>
<?php

$conn=mysqli_connect("localhost:3306","root","","SAS_Feedback_bank_management_s
ystem");
$msg = "";
$msg.='<center><h3>Update and Delete Data By Admin of User</h3><table border="1"
bgcolor="skyblue">
<tr>
<th>Name</th>
<th>Gender</th>
<th>Date of Birth</th>
<th>Age</th>
<th>Mobile</th>
<th>Feedback Group</th>
<th>email</th>
<th>Password</th>
<th>Confirm Password</th>
<th>update</th>
<th>Delete</th>
</tr>';
?>
<?php
$msg.="";
$query = "select * from rg_form";
$row = mysqli_query($conn, $query);
while($res=mysqli_fetch_assoc($row)){
$msg.= '<tr>';
$msg.= '<td>'.$res["name"].'</td>';
108 | P a g e
$msg.= '<td>'.$res["gender"].'</td>';
$msg.= '<td>'.$res["DOB"].'</td>';
$msg.= '<td>'.$res["age"].'</td>';
$msg.= '<td>'.$res["mobile"].'</td>';
$msg.= '<td>'.$res["Feedback_group"].'</td>';
$msg.= '<td>'.$res["email"].'</td>';
$msg.= '<td>'.$res["password"].'</td>';
$msg.= '<td>'.$res["c_password"].'</td>';
$msg.= '<td><a href="update.php" title="
">update</a></td>';
$msg.= '<td><a href="delete.php" title="
">Delete</a></td>';
$msg.= '</tr>';
}
$msg.='</table><a href="home.php">Cancel</a></center>';
?>

<div>
<br>
<br>
<?php
$myfile = fopen("admin.txt", "w") or die("Unable to open file!");
fwrite($myfile, $msg);
fclose($myfile);

$myfile = fopen("admin.txt", "r") or die("Unable to open file!");


echofread($myfile,filesize("admin.txt"));
fclose($myfile);
?>
</div>

</body>
109 | P a g e
</html>
<?php
include 'footer.php';
?>

View Feedback –

PHP Code

<?php

include 'header.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>DB Test</title>
</head>
<body>
<?php
$conn=mysqli_connect("localhost:3306","root","","SAS_Feedback_bank_management_s
ystem");
$msg = "";
$msg.='<center><h3>All Users Feedback About SAS Feedback Management</h3><table
border="1" bgcolor="skyblue">
<tr>
<th>Name</th>
<th>Email</th>
<th>Subject</th>
<th>Description</th>
</tr>';
?>
<?php
110 | P a g e
$msg.="";
$query = "select * from Contact_us";
$row = mysqli_query($conn, $query);
while($res=mysqli_fetch_assoc($row)){
$msg.= '<tr>';
$msg.= '<td>'.$res["name"].'</td>';
$msg.= '<td>'.$res["email"].'</td>';
$msg.= '<td>'.$res["subject"].'</td>';
$msg.= '<td>'.$res["description"].'</td>';
$msg.= '</tr>';
}
$msg.='</table><a href="home.php">Cancel</a></center>';
?>

<div>
<br>
<br>
<?php
$myfile = fopen("poem.txt", "w") or die("Unable to open file!");
fwrite($myfile, $msg);
fclose($myfile);

$myfile = fopen("poem.txt", "r") or die("Unable to open file!");


echofread($myfile,filesize("poem.txt"));
fclose($myfile);
?>
</div>

</body>
</html>
<?php
include 'footer.php';
111 | P a g e
?>

Manage Faculty & Students –


PHP Code
<?php
include 'header.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>DB Test</title>
</head>
<body>
<?php
$conn=mysqli_connect("localhost:3306","root","","SAS_Feedback_bank_management_s
ystem");
$msg = "";
$msg.='<center><h3>Total Request Of User For Feedback</h3><table border="1"
bgcolor="skyblue">
<tr>
<th>Name</th>
<th>Gender</th>
<th>Age</th>
<th>Mobile No.</th>
<th>Feedback_group</th>
<th>Email-Id</th>
<th>Till Date</th>
<th>Description</th>
</tr>';
?>
<?php
$msg.="";

112 | P a g e
$query = "select * from request_form";
$row = mysqli_query($conn, $query);
while($res=mysqli_fetch_assoc($row)){
$msg.= '<tr>';
$msg.= '<td>'.$res["name"].'</td>';
$msg.= '<td>'.$res["gender"].'</td>';
$msg.= '<td>'.$res["age"].'</td>';
$msg.= '<td>'.$res["mobile"].'</td>';
$msg.= '<td>'.$res["Feedback_group"].'</td>';
$msg.= '<td>'.$res["email"].'</td>';
$msg.= '<td>'.$res["till_date"].'</td>';
$msg.= '<td>'.$res["description"].'</td>';
$msg.= '</tr>';
}
$msg.='</table><a href="home.php">Cancel</a></center>';
?>
<div>
<br>
<br>
<?php
$myfile = fopen("poem.txt", "w") or die("Unable to open file!");
fwrite($myfile, $msg);
fclose($myfile);

$myfile = fopen("poem.txt", "r") or die("Unable to open file!");


echofread($myfile,filesize("poem.txt"));
fclose($myfile);
?>
</div>
</body>
</html>
<?php
113 | P a g e
include 'footer.php';
?>

Logout –

PHP Code
<?php
session_start();
session_destroy();
header("location: index.php");
?>

114 | P a g e
TESTING METHODOLGY

Testing is a process of executing a program with the intent of finding an error. A good
test case is one that has a high portability of finding an as-yet- undiscovered error. A
successful test is one that uncovers an as- yet- undiscovered error. Testing is vital to the
success of the system. Testing of system makes a logical assumption that if all the parts
of system are correct, the goal will be successfully achieved. The first test of a system is
to see whether it produces the correct output.
Requirements for testing
 Hardware Requirements
 Software Requirements

Hardware Requirements
This application can run with:-
 3.60 GHz or upper version of Processor’s
 Minimum 1 GB RAM
 Minimum 20 GB of Hard Disk
 Network connection

Software Requirements
Various s/w required to run this application, includes:-
 Windows XP/NT/7/Vista or upper version of Windows or Unix/Linux
 Web Browser like IEbrowser, Google Chrome, Mozilla Firefox browser
 MySQL database

STRATEGY USED FOR SOFTWARE TESTING


Testing begins at the component level and works outward toward the integration of the
entire computer system. The developer of the software conducts testing. Strategies for
testing starts with low-level tests like testing of all forms individually and verify that a
small source code segment has been correctly implemented.

115 | P a g e
Testing of a system is generally done in three phases –

1. UNIT TESTING
2. INTEGRATION TESTING
3. SYSTEM TESTING

1. UNIT TESTING:Unit testing is done for each module independently on its


completion. In our Online Feedback Management System Web application, we have
separately tested each and every module upon its completion.

The steps involved during Unit testing are as follows –


1. Preparation of the test cases.
2. Preparation of the possible test data with all the validation checks.
3. Complete code review of the module.
4. Actual testing done manually.
5. Modifications done for the errors found during testing.
6. Prepared the test result scripts.

After completing the Unit testing of all the modules, the whole system is integrated with
all its dependencies in that module. While System Integration, we integrated the modules
one by one and tested the system at each step. This helped in reduction of errors at the
time of the system testing.

2. INTEGRATION TESTING:The next step is the integration testing which is


done at the completion of the project. Here we test all the modules in their intergraded
form.

The steps involved during Integration testing are as follows –


1. Integration of all the modules in the system.
116 | P a g e
2. Preparation of the test cases.
3. Preparation of the possible test data with all the validation checks.
4. Actual testing done manually.
5. Recording of all the reproduced errors.
6. Modifications done for the errors found during testing.
7. Prepared the test result scripts after rectification of the errors

3. SYSTEM TESTING:In system testing the software and the other system
elements are tested as a whole. After the completion of system testing successfully, we
can able to delivery of final project.

BLACK BOX TESTING


Software typically undergoes many levels of testing, form unit testing to system or
acceptance testing. Typically, in unit testing small “units” or modules, of the software are
tested separately with focus on testing the code of that module.

In higher-order testing (e.g., acceptance testing), the entire system (or a subsystem) is
tested with the focus on testing the functionality or external behavior of system.
Generally, only black box testing is performed at higher levels, while at lower levels
white box testing is also done.

If Black box testing is to be done, by definition, the test cases are selected independently
of the internal structure of the code. In this case, it clearly does not matter whether the
software is object-oriented or function-oriented. All the techniques mentioned earlier for
Black Box testing can be applied to object-oriented systems.

Testing classes is a fundamentally different problem than testing functions, as a function


(or a procedure) has a clearly defined input-output behavior, while a class does not have

117 | P a g e
an input-output behavior specification. We can test a method of a class using these
approaches. So, for testing methods individually, the control flow-based and data flow-
based structure testing techniques can easily be applied.

Black Box testing to find errors in the following categories:

1) Incorrect or missing functions,


2) Interface error
3) Error in data structures or external database access.
4) Behavior or performance errors.
5) Initialization and termination errors.

TEST REPORT

We have developed three test cases while testing our project. On performing these test
cases we can say that our project has turned out into an efficient, effective and secure
application. These test cases can be described as:-

1. Since it is a network application it comes with a lot of pages, pre and post login so
main security concern is with the security of the pages that come post login.
Anything can be accessed from these pages if we don’t provide proper security to
these pages then these pages can be accessed directly by providing the URL for
the particular page in our browsers. So this application works on sessions if a
session is set the page will be accessed otherwise the user will not be able to
access the page by directly providing the URL of that page. Each time a user
authenticates him/her the user session is created and the pages are accessed... so
we tried to access each and every page that comes post login to check that there is
no security breach.

2. TESTING OF ADMINISTRATOR LOGIN MODULE


118 | P a g e
Case 1: When password and id are right.
INPUT:-If Username = Correct Administrator Username && Password= Correct
Administrator Password
OUTPUT:-It will display Administrator Page.

Case 2: When either password or id is wrong.


INPUT:-If Username = Incorrect Administrator Username or Password= Incorrect
Administrator Password
OUTPUT:-It will navigate you to Administrator Login Page along with text
“Please enter correct Username and Password”.

3. TESTING OF USER LOGIN MODULE


Case 1: When password and id are right.
INPUT:-If Username = Correct Username && Password= Correct User Password
OUTPUT:-It will display User Page.

Case 2: When either password or id is wrong.


INPUT:-If Username = Incorrect Username or Password= Incorrect
UserPassword
OUTPUT:-It will navigate you to User Login Page along with text “Please enter
correct Username and Password”.

119 | P a g e
USER/OPERATIONAL MANUAL

Welcome user!
Here’s an introduction to “Online Feedback Management System”…
Online Feedback Management System is aimed to provide an easy way for all the users,
patients and the server administrator to maintain the Feedback and its requirements. It
helps them via providing an easy to access and much simplified way of sending
information and views the donation reports for user and requesting for the Feedback by
the patients and the easy management of information by the admin and also responding to
the urgent seekers of Feedback.
Features list of Online Feedback Management System:
Main Menu
 Home
 About The Online Feedback Management System
 UserRegistration
 User Login
 Home (User Panel)
 View Profile
 Update Profile
 Give/View Feedback
 Logout
 Contact Us
 Contact us form
 Submit information
 Admin Panel
 Login
 Manage User
 Manage Feedback
 Manage User Profile
 View feedback/information received
 Manage Contact Us

120 | P a g e
 Logout

CONCLUSION OF THE PROJECT

Online “Online Feedback Management System” is a web application that allows


accessing the whole information about Feedback Management software, readily scalable
and adaptable to meet the complex need of Feedback Management who is the key
facilitator for the health care sector; it also supports all the functionalities of Feedback
Management. It is used for maintaining information about the campus. The project
includes some main modules like admin, user, and patients.

The proposed Online Feedback Management System helps the people who are in need of
a Feedback by giving them all details of Feedback group availability or regarding the
users with the same Feedback group. Our website work 24x7 so user can get information
of Feedbackuser any time. Feedbackuser can also get registered and save life of other
person. When Feedback is need in the operation then people have very less time to get the
Feedback available so if he gets the information like who can give him Feedback in time
in his city is life-saving.

Hence the Conclusion of the Online Feedback Management System is to provide


Feedback to the Feedback seekers/Patients on time and to collect Feedback means the
Feedback donation organization and management of the Feedback records. It is a mean of
managing the Feedback information and provides authorized access to the user/patient.

The admin panel helps to update and delete user information, view feedbacks given by
users/patients, manage the requests received for Feedback requirements.

The user/patient panel helps to view profile, update the profile information in which the
user/patient id that is primary key, cannot be modified again.

This project has an advantage that a user can directly view the website overview without
login, in which the user can search for Feedback group, does it available or not.

121 | P a g e
So, this project is based on the management of Feedback Management in a small and
familiar way that is easy to access, manage and develop.

122 | P a g e
REFERENCES

Books –

1. Beginning PHP and MySQL from Novice to Professional 4th edition - W. Jason
Gilmore

2. Beginning PHP 5.3 - Matt Doyle, John Wiley & Sons

3. PHP Tutorial – Tutorials Point

Website Links –

1. www.w3schools.com

2. www.codecademy.com

3. www.tutorialspoint.com

4. www.phptpoint.com

5. www.learn-php.org

Paper Links –

1. www.zend.com

2. www.lu.lv

3. www.ijcsmc.com

123 | P a g e

You might also like