student information management system php mysql

87
A PROJECT REPORT ON “Student Information Management System” Submitted in partial fulfillment for the Award of degree of Bachelor of Technology in nformation Technology Submitted by: !apil !au"hi# An#ur Agarwal Tu"har Somani Submitted to: $ead of %epartment Academic $ead Pro&ect 'uide  ()r* N* P* S$R+ASTA+A, ()r* %-P '.PTA, ()r* R/0AN !$AN, PRNCPA- ()r* N* !* !$AN%E-0A-,  Department of Information Technology  Maharishi

Upload: sai-printers

Post on 04-Jun-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 1/87

A

PROJECT REPORT

ON

“Student Information Management System”

Submitted in partial fulfillment for theAward of degree of 

Bachelor of Technology in nformation Technology

Submitted by:

!apil !au"hi#An#ur AgarwalTu"har Somani

Submitted to:

$ead of %epartment Academic $ead Pro&ect 'uide

  ()r* N* P* S$R+ASTA+A, ()r* %-P '.PTA, ()r* R/0AN !$AN,

PRNCPA-()r* N* !* !$AN%E-0A-,

  Department of InformationTechnology

  Maharishi

Page 2: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 2/87

ArvindInstitute of Engineering and

Technology  2010-11

PRE1ACE

This project 2Student nformation )anagement Sy"tem3 provides us a simple

interface for maintainance of student information.It can be used by educational

institutes or colleges to maintain the records of students easily. Achieving this

objective is difficult using a manual system as the information is scattered can be

redundant and collecting relevant information may be very time consuming. All these

problems are solved using this project.

Throughout the project the focus has been on presenting information in an easy and

intelligible manner. The project is very useful for those !ho !ant to "no! about

Student Information Management Systems and !ant to develop soft!ares#!ebsites

based on the same concept.

The project provides facilities li"e online registration and profile creation of students

thus reducing paper!or" and automating the record genreration process in an

educational institution.

Page 3: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 3/87

AC!NO0-E%'E)ENT

$e ta"e this opportunity to e%press our sincere gratitude to all those !ho helped us

in various capacities in underta"ing this project and devising the report.

$e are privileged to e%press our sense of gratitude to our respected teacher   )r*Ri4wan !han !hose unparalleled "no!ledge moral fiber and judgment along !ith

his "no!&ho! !as an immense support in completing the project.

$e are also grateful to )r* Neera& Shri5a"ta5the 'ead of (epartment Information

Technology for the brain!ave and encouragement given.

$e ta"e this opportunity also to than" our friends and contemporaries for their co&

operation and compliance.

 

)apil )aushi"

  An"ur Agar!al

  Tushar Somani

Page 4: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 4/87

Page 5: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 5/87

TAB-E O1 CONTENTS

*. (eclaration

+. Synopsis of project

,. System -euirement Specification

/. Technology overvie!

0. 1roject description

2. Snapshots

3. Scope of project

4. 5ontribution in project

6. 7ibliography

Page 6: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 6/87

%EC-ARATON

  MaharishiArvind

Institute of Engineering andTechnology

2010-11

%EPART)ENT O1 N1OR)ATON TEC$NO-O'6

CERT1CATE

This is to certify that the project titled

2ST.%ENT N1OR)ATON )ANA'E)ENT S6STE)3

is a bonafied !or" carried out by follo!ingInformation Technology students:

7* !apil !au"hi#

8* An#ur Agarwal

9* Tu"har Somani

8nder our guidance to!ards the partial fulfillment of the -euirementsfor the degree of the 7achelor of Technology by -T8 "ota during the

academic year of +9*9&+9**

  '.%E $EA% O1 %EPART)ENT

()r* Ri4wan !han, ()r* N*P* Shri5a"ta5a,

Page 7: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 7/87

S6NOPSS

Ab"tract

Student Information Management System can be used by education institutes to

maintain the records of students easily. Achieving this objective is difficult using a

manual system as the information is scattered can be redundant and collecting

relevant information may be very time consuming. All these problems are solved

using this project.

Name of the Pro&ect: Student Information Management System

Ob&ecti5e":

nline registration of students

Maintenance of student records

Searching student records

."er" +iew":

 Administrator 

Student

Platform 

Operating Sy"tem": Microsoft $indo!s

Technologie" ."ed:

;ront <nd: 'TM= and >avascript

$eb designing language: 1'1

Page 8: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 8/87

-(7MS?7ac" end@: MyS=

Software Re:uirement":

1'1 0.9

 A1A5'< 'TT1 Server 

(ream!eaver;ront1age for ;ront <nd 1rogramming

Microsoft $indo!s or =inu%

$ardware Re:uirement":

Intel 1entium IB processor or euivalent or higher 

0*+ M7 -am or 'igher 

+9 C7 '(( or 'igher 

Det!or" 5onnectivity

Page 9: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 9/87

SO1T0ARE RE;.R)ENT SPEC1CATON

7*  ntroduction

7*7 Purpo"e<

The objective of Student information Sy"tem is to allo! the administrator of

any organiEation to edit and find out the personal details of a student and

allo!s the student to "eep up to date his profile .ItFll also facilitate "eeping all

the records of students such as their id name mailing address phone

number (7 etc. So all the information about an student !ill be available in a

fe! seconds.

verall itFll ma"e Student Information Management an easier job for the

administrator and the student of any organiEation.

The main purpose of this S-S document is to illustrate the reuirements of

the project Student information Sy"tem  and is intended to help any

organiEation to maintain and manage its studentFs personal data.

 

7*8 Scope <

$ithout a Student information Sy"tem managing and maintaining the

details of the student is a tedious job for any organiEation.

Student Information system !ill store all the details of the studentsincluding their bac"ground information educational ualifications personal

details and all the information related to their resume .

-ogin module: =ogin module !ill help in authentication of user accounts

.8sers !ho have valid login id and pass!ord can only login into their

respective accounts.

Page 10: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 10/87

Search module: Suppose there are hundreds of students and from this !e

have to search a particular student and !e "no! the name of the student .In

manual system it is a tedious tas" though !e "no! the name of the student

but using this module !e can easily search the student by specifying the

name of the student in the search criteria. Thus this module !ill help the

administrator in searching the student !ith various criteria easily.

Regi"tration )odule and Account )anagement: This module !ill help the

student get registered from any!here if internet is present .This module !ill

really simplify the tas" of on paper registration. Also after successful

registration the user can update information and change their pass!ord as

and !hen reuired.

."er )anagement: This module !ill help the administrator in

enabling#disabling a user account and updating user information as reuired.

1urpose of project is to maintain details of the students such as storing

information about:

Student id

Student pass!ord

Student name

 Student (7

Student mailing address

Page 11: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 11/87

Cender 

-egistration date

Student status

5ontact no

ualification

5ity

-esume

Image

  7*9  %efinition"= Acronym" and Abbre5iation" <

Per"onal detail"< (etails of student such as user id phone number

address image resume e&mail address etc.

• Contact detail"< (etails of contact associated !ith the student.

 

• SRS< System reuirement Specification

• 000: $orld $ide $eb

Page 12: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 12/87

• Admini"trator< A =ogin Id representing the user is an administrator G

can access all the records details

7*> Technologie" <

• 1'1.

• MHS=

• >ABAS5-I1T

• 'TM=

• 5SS

7*? O5er5iew<

The rest of this S-S is organiEed as follo!s:

Section 8 gives an overall description of the soft!are. It gives !hat level of

proficiency is e%pected of the user some general constraints !hile ma"ing the

soft!are.

Section 9  gives specific reuirements !hich the soft!are is e%pected to

deliver. Some performance reuirements and constraints are also given and

deal !ith other Don&;unctional -euirements.

Section >  deals !ith <%ternal Interface -euirements li"e 'ard!are and

Soft!are Interface.

8*O+ERA-- %ESCRPTON

8*7 Product Per"pecti5e <

 

The !ebsite Student nformation  Sy"tem is aimed to!ards recording a

considerable number of student records and needs online assistance for

managing records of students. $ebsite should be user&friendly uic" tolearnF and reliable !ebsite for the above purpose.

Page 13: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 13/87

Student nformation Sy"tem is intended to be a stand&alone product and

should not depend on the availability of other !ebsite. The system !ill also

have an administrator !ho has full&fledged rights !ith regards to performing

all actions related to control and management of the !ebsite.

  8*8 Product 1unction" <

There are t!o different users !ho !ill be using this product:

 Administrator !ho can vie! and edit the details of any students.

Students !ho can vie! their details as !ell as they can edit their

details.

The features that are available to the Administrator are:

 An Administrator can login into the system and perform any of the

available operations.

5an enable#disable student.

5an edit student information to the database.

5an ma"e search for a specific student.

5an access all the details of the student.

The features that are available to the student are:

Student can login into the system and can perform any of the

available options.

5an vie! his#her personal details.

5an edit his#her personal details

5an upload his#her resume.

5an upload his#her image.

8*9 ."er Cla""e" and Characteri"tic" <

There are mainly t!o "inds of users for the product.The users include:

Page 14: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 14/87

 Administrator 

Student

8*> Operating En5ironment <The product can run on any bro!ser.

8*? Con"traint" <

<very user must be comfortable using computer.

 All operations are in <nglish so user must have basic "no!ledge of

<nglish.

8*@ .SE CASE )O%E- <

Page 15: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 15/87

  ."e Ca"e )odel

*. Admini"trator< -esponsible for managing student records.

• =ogin into the !ebsite

• 8pdate student details

• Search student details

• (isplay student details

• <nable#(isable student

Page 16: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 16/87

+. Student< 'as the access rights to vie! and edit their personal details.

• =ogin into the !ebsite

• (isplay student details

• <dit their details

• 8pload their images

• 8pload their resumes

8* A""umption" dependencie"

•  Administrator is created in the system already.

• -oles and tas"s are predefined.

9 Specific Re:uirement" <

9*7 ."e Ca"e Report"

*.  Admini"trator< -esponsible for managing student details.

  ."eca"e< =ogin into the !ebsite

  'oal in conteDt< Cain access to the !ebsite

Brief %e"cription< This use case is used !hen the administrator !ants

to access the !ebsite to enable#disable#update the personal details of

the student.

Page 17: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 17/87

Precondition"< The Administrator must be logged onto the !ebsite in

order for this use case to begin. 

Ba"ic 1low<

The $ebsite prompts the administrator for the user name and

pass!ord.

The Administrator enters the user name and pass!ord.

The $ebsite verifies the pass!ord and sets the userFs

authoriEation.

The Administrator is given access to the $ebsite to perform histas"s.

Alternati5e 1low<

The administrator enters invalid username and pass!ord then he

  !ill not be allo!ed to enter the !ebsite* 

Po"t condition"< The !ebsite state is unchanged by this use case.

 

."e Ca"e Report -ogin into the web"ite

 

Page 18: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 18/87

  ."e Ca"e < (isplay student details

  'oal in conteDt< Bie! the details of a student

Brief %e"cription< This use case is used !hen the administrator !ants

to vie! the personal details of the students already e%isting in the

database on the screen.

Precondition"<

The Administrator must be logged into the system in order for this use

case to begin

The details of the student must pre&e%ist in the database

The student id must be entered correctly.

  Ba"ic 1low<

The Administrator logs onto the System.

The Administrator search the student from follo!ing "eys:&

o Student id

o ;irst#last name

o -egistration date

o status

The System prompts for the student detail from one of the above"eys.

The student details are displayed on the screen.

Page 19: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 19/87

Alternati5e 1low<

Student Dot ;ound

If in the %i"play a "tudent sub&flo!s a student !ith the specified id

number does not e%ist The system displays an error message. The

 Administrator can then enter a different id number or cancel the

operation at !hich point the use case ends.

Po"t condition"<

The student details are displayed on the screen already e%isting in the

system. The state of the system remains unchanged*

  ."e Ca"e < <dit student details

  'oal in conteDt< <dit the details of a student

Page 20: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 20/87

Brief %e"cription< This use case is used !hen the administrator !ants

to edit the personal details of the himself#herself already e%isting in the

database.

Precondition"<

The Administrator must be logged into the system in order for this use

case to begin.

The details of the student must pre&e%ist in the database

 Ba"ic 1low<

The Administrator logs onto the System.

The Administrator can edit follo!ing "eys:&

o ;irst#last name

o Cender 

o (7

o 5ontact no

o ualification

o 5ity

o <mail*

o <mail+

o  Address

o (escription

The $ebsite updates the database according to edited details.

The student details are edited in the database.

Alternati5e 1low<

There is no alternative flo! of this use case diagram.

Po"t condition"<

The student details get updated in the database* 

Page 21: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 21/87

 

."e Ca"e Report Edit "tudent detail into the web"ite

  8* Student

 

."e Ca"e < student registration

  'oal in conteDt< -egistration of a student

Brief %e"cription< This use case is used !hen the student register

himself#herself in the database online.

Precondition"<

The Student must accessed the !ebsite in order for this use case to

begin.

The user id must be uniue and entered correctly.

  Ba"ic 1low<

The Student enters into the !ebsite.

The student fill his#her details from the follo!ing "eys:&

o Student id

o pass!ord

o ;irst#last name

Page 22: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 22/87

o Status

o Cender 

o (7

o 5ontact noo ualification

o 5ity

o <mail*

o <mail+

o  Address

o (escription

o -esume

o Image

The System details are added to the database.

The student details are displayed on the screen.

Alternati5e 1low<

8ser I( not uniue: if the user id entered is not uniue then it !ill

sho! an error message.

Po"t condition"<

The student get registered on the !ebsite and to login into that particular

the administrator must enable it.

Page 23: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 23/87

  ."e Ca"e Report Regi"ter "tudent on web"ite

 

."eca"e< =ogin into the !ebsite

  'oal in conteDt< Cain access to the !ebsite

Brief %e"cription< This use case is used !hen the student !ants to

access the !ebsite

Precondition"< The Administrator must enabled the particular student

onto the !ebsite in order for this use case to begin.

  Ba"ic 1low<

The !ebsite prompts the student for the user name and pass!ord.

The Student enters the user name and pass!ord.

Page 24: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 24/87

The !ebsite verifies the pass!ord and sets the userFs authoriEation.

The Student is given access to the !ebsite to perform his tas"s.

Alternati5e 1low<

The Student enters invalid username and pass!ord then he !ill

not be allo!ed to enter the !ebsite* 

Po"t condition"< The !ebsite state is unchanged by this use case.

 

."e Ca"e Report -ogin into the "y"tem

  ."e Ca"e < <dit student details

  'oal in conteDt< <dit the details of a student

Brief %e"cription< This use case is used !hen the student !ants to edit

the personal details of the himself#herself already e%isting in the

database.

Precondition"<

The Student must be logged into the system in order for this use case

to begin.

The details of the student must pre&e%ist in the database

Page 25: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 25/87

The student must be enabled by administrator.

  Ba"ic 1low<

The Student logs onto the System.

The Student can edit follo!ing "eys:&

o ;irst#last name

o Cender 

o (7

o 5ontact no

o ualification

o 5ity

o <mail*

o <mail+

o  Address

o (escription

The $ebsite updates the database according to edited details.

The student details are edited in the database.

Alternati5e 1low<

There is no alternative flo! of this use case diagram.

Po"t condition"<

The student details get updated in the database*

Page 26: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 26/87

  ."e Ca"e Report Edit Student %etail" nto %ataba"e

 

9*8 1unctional Re:uirement" <

The Administrator !ill be given more po!ers ?enable#disable# update@ than

  other users.

It !ill be ensured that the information entered is of the correct format. ;or

e%ample name cannot contain numbers. In case if incorrect form of

information is added the user !ill be as"ed to fill the information again.

The system can be accessed anytime.

Page 27: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 27/87

9*9 Non 1unctional Re:uirement <

  9*8*7* Performance Re:uirement"<

  The proposed system that !e are going to develop !ill be used as the

5hief performance system for providing help to the organiEation in

managing the !hole database of the student studying in the organisation.

Therefore it is e%pected that the database !ould perform functionally all

the reuirements that are specified.

  9*8*8* Safety Re:uirement"<

The database may get crashed at any certain time due to virus or operating

system failure. Therefore it is reuired to ta"e the database bac"up.

  9*8*9* Security Re:uirement"<

$e are going to develop a secured database. There are different

categories of users namely Administartor Student !ho !ill be vie!ing

either all or some specific information form the database.

(epending upon the category of user the access rights are decided. It

means if the user is an administrator then he can be able to modify the

data append etc. All other users only have the rights to retrieve the

information about database.

 

9*> Conclu"ion <

This S-S has given all the details of the application need to be built.

Page 28: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 28/87

%ES'N P$ASE

7* ntroduction

7*7, Scope and purpo"e

The purpose of the design phase is to develop a clear understanding of

!hat the developer !ant people to gain from his#her project. As you the

developer !or" on the project the test for every design decision should be

J(oes this feature fulfill the ultimate purpose of the projectKJ

 A purpose statement affects the design process by e%plaining !hat the

developer !ants the project to do rather than describing the project itself.

The (esign (ocument !ill verify that the current design meets all of the

e%plicit reuirements contained in the system model as !ell as the implicit

reuirements desired by the customer.

7*8, O5erall Sy"tem %e"ign Ob&ecti5e"

The overall system design objective is to provide an efficient modular

design that !ill reduce the systemFs comple%ity facilitate change and

result in an easy implementation. This !ill be accomplished by designing

strongly cohesion system !ith minimal coupling. In addition this document

!ill provide interface design models that are consistent user friendly and

!ill provide straight for!ard transition through the various system

functions.

7*9, Structure of %e"ign %ocument

System Architecture Design  L The System architecture section has

detailed diagram of the system server and client architecture.

Page 29: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 29/87

Data Design  L The data (esign include an <-( as !ell as (atabase

design.

Functional Design Description – This section has the functional partitioning

from the S-S and goes into great detail to describe each function.

+. Sy"tem Architecture %e"ign

8*7, Sy"tem Architecture

The SIMS is a system !hich contain major part !hich include: student

(etail Student image and resume.

The user selects one of the available options as an input to the system.

 According to the input by the user the system acts and the rest of the

functions are performed accordingly.The administartor can operate on any

student details.7ut the normal student or users can only access their

details of all the functionalities.

 

Page 30: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 30/87

9* %ata %e"ign

9*7, Entity Relation"hip %iagram <

  Entity Relation"hip %iagram

Page 31: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 31/87

>* 1unctional %e"ign %e"cription

>*7 %ata 1low %iagram <

Page 32: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 32/87

>*8 %eci"ion Tree <

Page 33: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 33/87

?* Conclu"ion

'ence !e can conclude that the design phase of the SIMS give us the

information of all the processes used in the project and their relation.

TEC$NO-O'6 O+ER+E0

The technology selected for implementing Student Information Management System

is 1'1#MHS=.Apache is used as the 'TT1 server.The development !as done in a!indo!sF environment using adobe dream!eaver 5S0.

P$P

1'1 is a general&purpose scripting language that is especially suited to server&

side !eb development !here 1'1 generally runs on a !eb server.1'1 code is

embedded into the 'TM= source document.Any 1'1 code in a reuested file

is e%ecuted by the 1'1 runtime usually to create dynamic !eb page content.It can

also be used for command&line scripting and client&side C8I applications. 1'1 can

be deployed on many !eb servers and operating systems and can be used !ith

many relational database management systems ?-(7MS@. It is available free of

charge and the 1'1 Croup provides the complete source code for users to build

customiEe and e%tend for their o!n use.

)yS;-

MyS= is a relational database management system ?-(7MS@ *N  that runs as a

server providing multi&user access to a number of databases. MyS= is a popular

choice of database for use in !eb applications and is an open source product. The

process of setting up a MyS= database varies from host to host ho!ever !e !ill

end up !ith a database name a user name and a pass!ord. 7efore using our

database !e must create a table. A table is a section of the database for storing

Page 34: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 34/87

related information. In a table !e !ill set up the different fields !hich !ill be used in

that table. 5reating a table in phpMyAdmin is simple !e just type the name select

the number of fields and clic" the goF button. !e !ill then be ta"en to a setup screen

!here you must create the fields for the database.Another !ay of creating databases

and tables in phpMyAdmin is by e%ecuting simple S= statements.$e have used

this method in order to create our database and tables.

Apache

The Apache 'TT1 Server is a !eb server soft!are notable for playing a "ey role in

the initial gro!th of the $orld $ide $eb. In +996 it became the first !eb serversoft!are to surpass the *99 million !eb site milestone. Apache is developed and

maintained by an open community of developers under the auspices of the Apache

Soft!are ;oundation. Since April *662 Apache has been the most popular 'TT1

server soft!are in use. As of Dovember +9*9 Apache served over 06.,2O of all

!ebsites and over 22.02O of the first one million busiest !ebsites.

A)PP

PAM11 is a small and light Apache distribution containing the most common !eb

development technologies in a single pac"age. Its contents small siEe and

portability ma"e it the ideal tool for students developing and testing applications in

1'1 and MyS=. PAM11 is available as a free do!nload in t!o specific pac"ages:

full and lite. $hile the full pac"age do!nload provides a !ide array of development

tools PAM11 =ite contains the necessary technologies that meet the ntario S"ills5ompetition standards.The light version is a small pac"age containing Apache 'TT1

Server 1'1 MyS= phpMyAdmin penssl and S=ite.

Obtaining and n"talling A)PP

 As previously mentioned PAM11 is a free pac"age available for do!nload and use

for various !eb  development tas"s. All PAM11 pac"ages and add&ons are

distributed through the Apache ;riends  !ebsite at the address:

Page 35: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 35/87

http:##!!!.apachefriends.org#. nce on the !ebsite navigate and find the  $indo!s

version of PAM11 and do!nload the self&e%tracting QI1 archive. After do!nloading

the archive run and e%tract its contents into the root path of a hard dis" or 8S7

drive. ;or e%ample the e%tract path for a local $indo!s installation !ould simply be

5:R.  If e%tracted properly !e !ill notice a ne! %ampp directory in the root of your

installation dis". In order to test that everything has been installed correctly first start

the Apache 'TT1 Server by navigating to the %ampp directory and clic"ing on the

apachestart.bat batch file.

De%t !e !ill test if the server is running correctly by opening an internet bro!ser and

typing http:##localhost# into the address bar. If configured correctly !e !ill be

presented !ith a screen similar to that of the one belo!.

PAM11 splash screen.

Page 36: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 36/87

In order to stop all Apache processes !e do not close the running terminal

application but instead run another batch file in the %ampplite directory called

apachestop.bat.

Creating a %ataba"e and n"erting %ata

Do! that !e have run and tested Apache and 1'1 the ne%t step is running MyS=

and creating a database and table !hich !ill hold information to be used by our

!ebsite. In order to start MyS= navigate to the %ampp directory and run the

myslstart.bat batch file.The PAM11 pac"age contains an application called

phpMyAdmin !hich allo!s developers to administer and maintain MyS=

databases.$e !ill be using phpMyAdmin to create a database and table and enter

test data. 7efore testing phpMyAdmin ma"e sure that both Apache and MyS= are

running by opening their respective batch files: apachestart.bat and

myslstart.bat. Along !ith Apache and MyS= running in the bac"ground !e type

http:##localhost#phpMyAdmin# into our !eb bro!ser. If successful !e !ill be

presented !ith a phpMyAdmin start page similar to the one sho!n belo!.

Page 37: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 37/87

phpMyAdmin start page

The first step !ith phpMyAdmin running is creating a ne! database.$e create a ne!

database by directly e%ecuting S= statements as sho!n belo!.The successful

e%ecution of the sl uerry creates a database studentF !ith t!o tables in it.The

tabels are adminlogin and studentinformation.$e also inserted values in the

admin table.The screenshot belo! sho!s the successful e%ecution of the uery thus

creation of a database named student.

5reation of database in mysl using phpMyadmin

Page 38: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 38/87

Thus !e have learned to create a database in MHS= by e%ecuting sl statements.

 After creating the database and tables !e are no! ready to use them in our !ebsite

“Student Information Management System” .

PROJECT %ESCRPTON

ntroduction

Student Information Management System can be used by education institutes to

maintain the records of students easily. Achieving this objective is difficult using a

manual system as the information is scattered can be redundant and collectingrelevant information may be very time consuming. All these problems are solved

using this project

The directory structure of the project is as follo!s:

Page 39: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 39/87

.

%e"cription of root directory content"

mage" %irectory  < This directory contains the images uploaded by the

students during registration process.Supported formats are the .jpg and .gif

files.

Re"ume %irectory : This (irectory 5ontains resumes of students uploaded

during registration process of students.;iles in this folder can be of .doc.t%t or

.pdf format.

AdminFEditFStudentFnfo*php  : Admin page for editing information of a

student.The administrator can change details of a student in this page.Though

facility of changing the image and resume are not yet provided but !ill be

provided in future versions of the project.

Page 40: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 40/87

AdminFEditFStudentFnfoF$andler*php  : 1age handler for handling the

 Admin<ditStudentInfo.php file.It !rites the edited values in the database

on the server.

AdminF$eader*php : 'eader file for pages accessible to administrator only. AdminF$ome*php : 'ome page for administrator after logging in process.

AdminF-ogin*php : =ogin page for administrator access.Sho!s appropriate

message for !rong username and#or pass!ord.

AdminF-oginFhandler*php  : 1age handler for Admin=ogin.php page.It

chec"s the values provided !ith the values in the database.

AdminFStudentF+iewFnfo*php : 1age to display student information to the

administrator.

Connect*php : 1age for database connectivity.It is used !henever database

values are reuired on the page.

%i"playAll*php  : 1age to display all registered students to the

administrator.This facility is only available to the administrator.

EnableF%i"ableFhandler*php  : 'andler page for enabling#disabling of

students account facility.This functionality is only available to the

administrator.

1ooter*php : ;ooter file for all pages.

$eader*php : 'eader file for login page and homepage of the site.

ndeD*php : 'omepage of the !ebsite.

-ogout*php  : =ogout handler page.It (estroys all session variables thus

ending user session.

Search*php  : Search page to search students.It can only be used by

administrator.Students can be searched using different fields such as user

idaccount status etc.

SearchFRe"ult*php : 1age to display search results to the administrator.

Page 41: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 41/87

SearchF+iewFRe"ult*php  : 1age to display student information for any

selected search result.

StudentFEdit*php : 1age to edit student information.It can be accessed by

students.

StudentFEditF$andler*php : 1age handler for Student<dit.php.

StudentF$eader*php : 'eader file for student pages.

StudentF$ome*php : 'ome page for students after they log into their

respective accounts.

StudentFlogin*php  : =ogin 1age for student login. Appropriate message is

displayed if the login is unsuccessful.

StudentFloginFhandler*php : 1age handler for Student=ogin.php.It chec"s

the values provided !ith that in th the database.

StudentFRegi"tration*php : Student -egistration page.The students enters

various details here for registration.

StudentFRegi"trationFhandler*php  : 1age 'andler for handling the file

Studentregistration.php.It adds value to the studentinformation table thus

creating a ne! user.

StudentFRe"etFPa""word*php : 1age for resetting pass!ord.It can be used

only by students.Administrator pass!ord can be changed only by changing

the values in the table directly.

StudentFRe"etFPa""wordF$andler*php  : 1age handler for handling page

Student-eset1ass!ord.php.

StudentF+iew*php : 1age to display student profile !ith all the details of the

student.

Style*c"" : Stylesheet for the !hole site design.

Page 42: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 42/87

+alidation*&"  : >avascript validations used for validation of form values.

Barious form entries are validated at the client side using this file only.

%e"cription of databa"e table"

adminFlogin <

o userid : Stores user id of administrator?s@.

o pass!ord : Stores pass!ord of the administrator?s@.

o lastlogindate : Stores the last login date of the administrator?s@.

StudentFinformation <

Page 43: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 43/87

o studentid : Stores user id of the student?s@

o studentpass!ord : Stores pass!ord of the student?s@

o firstname : Stores first name of the student?s@

o lastname : Stores last name of the student?s@

o registrationdate : Stores the registration date of the student?s@.

o gender : Stores the gender of the student?s@.

o dateofbirth : Stores the date of birth of the student?s@.

o studentstatus : Stores the current status of the student account?s@.

o contactno : Stores the contact number of the student?s@.

o ualification : Stores student?s@ ualification.

o city : Stores the city in !hich the student?s@ lives.

o email* : Stores primary email of the student?s@.

o email+ : Stores secondary email of the student?s@.

o address : Stores the address of the student?s@.

o description : Stores description of the student?s@.

o resume : Stores resume of students?s@.

o image : Stores image of the student?s@.

o lastlogindate : Strores last login date of the student?s@.

1eature"

Page 44: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 44/87

The $ebsite provides follo!ing functionalities to the users :

Admini"trator  :

o =ogin#=ogout

o Bie! student information

o <dit Student Information

o <nable#disable student accounts

o Search students

Student :

o =ogin#=ogout

o Bie! profile

o

<dit profile

o 5hange pass!ord

o -egister ne! profile

Source Code

ndeD*php

UhtmlV

UheadV

Umeta http&euivWJ5ontent&TypeJ contentWJte%t#htmlX charsetWiso&4406&*JV

Ulin" relWJstylesheetJ hrefWJStyle.cssJ typeWJte%t#cssJ#V

UtitleV'ome 1ageU#titleV

U#headV

Page 45: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 45/87

UbodyV

Utable !idthWJ*99OJ heightWJ*99OJ V

  Utr heightWJ*0OJV

  UtdVUKphp include Y'eader.phpYXKVU#tdV

  U#trV

  Utr heightWJ49OJV

  Utd alignWJcenterJ valignWJbaselineJVUtable !idthWJ39OJV

  Utr heightWJ*9OJV

  Utd alignWJcenterJVUa hrefWJinde%.phpJ classWJstylelin"J styleWJte%t&

decoration:noneJV'omeU#aVU#tdV

  Utd alignWJrightJVUa hrefWJStudentlogin.phpJ classWJstylelin"J

styleWJte%t&decoration:noneJVStudent =oginU#aV

GnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspX

  Ua hrefWJAdminlogin.phpJ classWJstylelin"J styleWJte%t&

decoration:noneJVAdministrator =oginU#aVU#tdV

  U#trV

  UtrV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

  UtrV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

  U#tableVU#tdV

  U#trV

  Utr heightWJ0OJV

  UtdVUKphp include Y;ooter.phpYXKVU#tdV

  U#trV

U#tableV

U#bodyV

U#htmlV

Page 46: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 46/87

StudentFlogin*php

UhtmlV

UheadV

Umeta http&euivWJ5ontent&TypeJ contentWJte%t#htmlX charsetWiso&4406&*JV

UtitleV=ogin 1ageU#titleV

Ulin" relWJstylesheetJ hrefWJStyle.cssJ typeWJte%t#cssJ#V

Uscript typeWJte%t#javascriptJV

function validate?@

Z

if?document.form*.stid.valueWWJJ@

Z

  alert?J1lease enter your login Id.J@X

  document.form*.stid.focus?@X

  return falseX

[

if?document.form*.stpass.valueWWJJ@

Z

  alert?J1lease enter your pass!ord.J@X

  document.form*.stpass.focus?@X

  return falseX

[

[

U#scriptV

U#headV

Ubody on=oadWJjavascript:document.form*.stid.focus?@JVUform nameWJform*J methodWJpostJ actionWJStudentloginhandler.phpJ

onSubmitWJreturn validate?@XJV

  Utable !idthWJ*99OJ heightWJ*99OJ V

  UtrV

  Utd heightWJ*0OJVUKphp include Y'eader.phpYXKVU#tdV

  U#trV

  UtrV

Page 47: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 47/87

  Utd !idthWJ*99OJ heightWJ49OJ alignWJcenterJ valignWJbaselineJVUtable

!idthWJ69OJ V

  UtrV

  Utd !idthWJ4OJVUa hrefWJinde%.phpJ classWJstylelin"J styleWJte%t&

decoration:noneX font&family: GuotXTimes De! -omanGuotX Times

serifXJV'omeU#aVU#tdV

  Utd !idthWJ,0OJ alignWJcenterJVGnbspXU#tdV

  Utd !idthWJ+3OJVGnbspXU#tdV

  Utd !idthWJ,9OJ alignWJrightJVUa hrefWJStudent-egistration.phpJ

classWJstylelin"J styleWJte%t&decoration:none X font&!eight: boldXJVDe!

Student 5lic" 'ereU#aVU#tdV

  U#trV

  UtrV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

  UtrV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

 

UKphp if?\C<TYflagYN WW JsuccessJ@ Z KV

  UtrV

  Utd classWJstylegreenJ colspanWJ/J

alignWJcenterJV5ongratulations] Hou Are successfully registered. Hou can use

your =ogin Id and 1ass!ord to login to your account.U#tdV

  U#trV

  UKphp

[  else if?\C<TYflagYN WW Je%istsJ@ Z KV

Page 48: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 48/87

  UtrV

  Utd classWJstyleredJ colspanWJ/J alignWJcenterJVThis =ogin

Id? UKW\C<TYstudentidYNKV@ already e%ists.1lease try again !ith another

=ogin IdU#tdV

  U#trV

  UKphp

[else if?\C<TYflagYN WW JerrorJ@ Z

  KV

  UtrV

  Utd classWJstyleredJ colspanWJ/J alignWJcenterJV<rror !hile

inserting data. 1lease try again.U#tdV

  U#trV

  UKphp

  [

  KV

  UtrV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

  UtrV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

  UtrV

  Utd colspanWJ/JVUtable !idthWJ,9OJ borderWJ*J alignWJcenterJ

cellpaddingWJ,J cellspacingWJ9J bordercolorWJ^555555J

bgcolorWJ^555555JV

  Utr alignWJcenterJ bgcolorWJ^666666JV

  Utd colspanWJ+J classWJstylebigJVStudent =ogin 'ereU#tdV  U#trV

Page 49: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 49/87

  Utr bgcolorWJ^<*<*<*J classWJstylesmallJV

  Utd !idthWJ,0OJ alignWJleftJ classWJstyle3JV=ogin Id : U#tdV

  Utd !idthWJ20OJ alignWJleftJVUinput nameWJstidJ typeWJte%tJ

idWJstidJVU#tdV

  U#trV

  Utr bgcolorWJ^<*<*<*J classWJstylesmallJV

  Utd alignWJleftJ classWJstyle3JV1ass!ord:U#tdV

  Utd alignWJleftJVUinput nameWJstpassJ typeWJpass!ordJ

idWJstpassJVU#tdV

  U#trV

  Utr bgcolorWJ^<*<*<*JV

  Utd colspanWJ+J alignWJcenterJVGnbspX

  UKphp if?\C<TYflagYN WW JinvalidJ@ Z KV

  Uspan classWJstyleredJVInvalid =ogin Id or 1ass!ordU#spanV

UKphp [KV

U#tdV

  U#trV

  Utr bgcolorWJ^<*<*<*JV

  Utd colspanWJ+J alignWJcenterJVUinput nameWJloginJ classWJstyle*9J

typeWJsubmitJ idWJloginJ valueWJ=oginJV

  Uinput nameWJcloseJ typeWJbuttonJ idWJcloseJ classWJstyle*9J

valueWJ5loseJ on5lic"WJself.locationWYinde%.phpYJV U#tdV

  U#trV

  U#tableVU#tdV

  U#trV

  U#tableVU#tdV

  U#trV

  UtrV

  Utd heightWJ0OJ alignWJcenterJVUKphp include Y;ooter.phpYXKVU#tdV

  U#trV

  U#tableV

U#formV

U#bodyV

Page 50: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 50/87

U#htmlV

StudentFloginFhandler 

UKphp

sessionstart?@X

include Y5onnect.phpYX

\flag W JJX

\studentid W \1STYstidYNX

\stpass W \1STYstpassYNX

\uery W Jselect lastlogindate from studentinformation !herestudentidWY\studentidY and studentpass!ordWY\stpassY and

studentstatus WY<nableYJX

\result W mysluery?\uery\lin"id@X

if?myslerror?@ ]W null@Z

die?myslerror?@@X

[

if?\date W myslfetcharray?\result@@Z

 \lastdate W \dateYlastlogindateYNX

 \date+ W date?Jd&m&H h:i AJstrtotime?\lastdate@@X

 \S<SSIDYuseridYN W \1STYstidYNX

 \S<SSIDYlastloginYN W\date+X

 \S<SSIDYtypeYN W JStudentJX

 mysluery?Jupdate studentinformation set

lastlogindateWno!?@ !here studentidWY\studentidYJ\lin"id@X

 if?myslerror?@ ]W null@Z

die?myslerror?@@X

[

 header?Jlocation:Student'ome.phpJ@X

 die?@X

[

else

Page 51: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 51/87

Z

\flag W JinvalidJX

header?Jlocation:Studentlogin.phpKflagW\flagJ@X

die?@X

[

KV

StudentFRegi"tration*php

UhtmlVUheadV

Ulin" relWJstylesheetJ hrefWJStyle.cssJ typeWJte%t#cssJ#V

Umeta http&euivWJ5ontent&TypeJ contentWJte%t#htmlX charsetWiso&4406&*JV

UtitleVStudent -egistration 1ageU#titleV

Uscript srcWJBalidation.jsJVU#scriptV

Uscript typeWJte%t#javascriptJV

function validation?@

Z

if?document.form*.firstname.valueWWJJ@

Z

  alert?J1lease enter your first name.J@X

  document.form*.firstname.focus?@X

  return falseX

[

if?document.form*.lastname.valueWWJJ@

Z

  alert?J1lease enter your last name.J@X

  document.form*.lastname.focus?@X

  return falseX

[

if?document.form*.dob.valueWWJJ@

Z

Page 52: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 52/87

  alert?J1lease enter your date of birth.J@X

  document.form*.dob.focus?@X

  return falseX

[

else

Z

  var date W document.form*.dob.valueX

  var yes W chec"(ate?date@X

  if?]yes@

Z

alert?J1lease <nter a valid date of birth.J@X

 document.form*.dob.focus?@X

 return falseX

[

 [

if?document.form*.email*.valueWWJJ@

Z

  alert?J1lease enter your primary email.J@X

  document.form*.email*.focus?@X

  return falseX

[

else

Z

  var is<mail W emailBalidator?document.form*.email*.value@X

  if?]is<mail@

  Z

alert?J1lease enter a valid primary email.J@X

document.form*.email*.focus?@X

return falseX

  [

[

if?document.form*.address.value ]W JJ GG

document.form*.address.value.length V *99@Zalert?JHou can enter address upto *99 characters only.J@X

Page 53: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 53/87

document.form*.address.focus?@X

return falseX

[

if?document.form*.description.value ]W JJ GG

document.form*.description.value.length V +99@Z

alert?JHou can enter description upto +99 characters only.J@X

document.form*.description.focus?@X

return falseX

[

if?document.form*.stid.valueWWJJ@

Z

  alert?J1lease enter your desired student id.J@X

document.form*.stid.focus?@X

  return falseX

[

if?document.form*.stpass.valueWWJJ@

Z

  alert?J1lease enter your desired pass!ord.J@X

  document.form*.stpass.focus?@X

  return falseX

[

if?document.form*.retype.valueWWJJ@

Z

  alert?J1lease enter retype pass!ord.J@X

  document.form*.retype.focus?@X

  return falseX

[

if?document.form*.stpass.value ]W document.form*.retype.value@

 Z

  alert?J1ass!ord and retype pass!ord are not same.J@X

document.form*.stpass.value W JJX

  document.form*.retype.value W JJX

  document.form*.stpass.focus?@X  return falseX

Page 54: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 54/87

 [

[

U#scriptV

U#headV

Ubody on=oadWJjavascript:document.form*.firstname.focus?@JV

Uform nameWJform*J methodWJpostJ

actionWJStudent-egistrationhandler.phpJ onSubmitWJreturn validation?@J

enctypeWJmultipart#form&dataJV

  Utable !idthWJ*99OJV

  UtrV

  Utd !idthWJ*99OJ heightWJ*0OJ alignWJcenterJVUKphp include

Y'eader.phpYXKVU#tdV

  U#trV

  UtrV

  Utd !idthWJ*99OJ heightWJ49OJ alignWJcenterJVUtable !idthWJ49OJ

borderWJ*J cellpaddingWJ+J cellspacingWJ9J bordercolorWJ^555555JV

  Utr bgcolorWJ^<<<<<<JV

  Utd colspanWJ/J alignWJcenterJ classWJstylemediumJVStudent

InformationU#tdV

  U#trV

  Utr classWJstylesmallJV

  UtdV;irst Dame Uspan classWJstyleredJV_U#spanV U#tdV

  UtdVUinput nameWJfirstnameJ typeWJte%tJ idWJfirstnameJ

ma%lengthWJ09JVU#tdV

  UtdV=ast Dame Uspan classWJstyleredJV_U#spanV U#tdV

  UtdVUinput nameWJlastnameJ typeWJte%tJ idWJlastnameJ

ma%lengthWJ,9JVU#tdV

  U#trV

  Utr classWJstylesmallJV

  UtdVCenderU#tdV

  UtdVUinput nameWJgenderJ typeWJradioJ valueWJMaleJ chec"edV

  MaleUinput nameWJgenderJ typeWJradioJ valueWJ;emaleJV  ;emaleU#tdV

Page 55: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 55/87

  UtdV(ate f 7irth Uspan classWJstyleredJV_U#spanV U#tdV

  UtdVUinput nameWJdobJ typeWJte%tJ idWJdobJ siEeWJ*9J

ma%lengthWJ*9JV

((&MM&HHHHU#tdV

  U#trV

  Utr classWJstylesmallJV

  UtdVualification Uspan classWJstyleredJV_U#spanV U#tdV

  UtdVUselect nameWJualificationJ idWJualificationJV

  Uoption valueWJJV&&&&&select&&&&&U#optionV

Uoption valueWJ'igh SchoolJV'igh SchoolU#optionV

Uoption valueWJCraduateJVCraduateU#optionV

Uoption valueWJM5AJVM5AU#optionV

Uoption valueWJ75AJV75AU#optionV

Uoption valueWJMaster (egreeJVMaster (egreeU#optionV

  U#selectVU#tdV

  UtdV5ontact DoU#tdV

  UtdVUinput nameWJcontactnoJ typeWJte%tJ idWJcontactnoJ

ma%lengthWJ+9JVU#tdV

  U#trV

 

Utr classWJstylesmallJV

  UtdV 5ityU#tdV

  UtdVUinput nameWJcityJ typeWJte%tJ idWJcityJ ma%lengthWJ,9JVU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

  Utr classWJstylesmallJV

  UtdV1rimary <mail Uspan classWJstyleredJV_U#spanV U#tdV

  UtdVUinput nameWJemail*J typeWJte%tJ idWJemail*J

ma%lengthWJ*99JVU#tdV

  UtdVSecondary <mailU#tdV

  UtdVUinput nameWJemail+J typeWJte%tJ idWJemail+Jma%lengthWJ*99JVU#tdV

Page 56: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 56/87

  U#trV

  Utr classWJstylesmallJV

  UtdVAddressU#tdV

  Utd colspanWJ,JVUte%tarea nameWJaddressJ colsWJ/0J ro!sWJ+J

idWJaddressJVU#te%tareaVU#tdV

  U#trV

Utr classWJstylesmallJV

  UtdV (escriptionU#tdV

  Utd colspanWJ,JVUte%tarea nameWJdescriptionJ colsWJ/0J ro!sWJ,J

idWJdescriptionJVU#te%tareaVU#tdV

  U#trV

  Utr bgcolorWJ^<<<<<<JV

  Utd colspanWJ/J alignWJcenterJ classWJstylemediumJV=ogin

InformationU#tdV

  U#trV

  UtrV

  Utd colspanWJ/JVGnbspXU#tdV

  U#trV

  Utr classWJstylesmallJV

  UtdV(esired I( Uspan classWJstyleredJV_U#spanV U#tdV

  UtdVUinput nameWJstidJ typeWJte%tJ idWJstidJ ma%lengthWJ+9JVU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

  Utr classWJstylesmallJV

  UtdV1ass!ord Uspan classWJstyleredJV_U#spanV U#tdV

  UtdVUinput nameWJstpassJ typeWJpass!ordJ idWJstpassJ

ma%lengthWJ+9JVU#tdV

  Utd alignWJrightJV-etype 1ass!ordUspan classWJstyleredJV _U#spanV

U#tdV

  UtdVUinput nameWJretypeJ typeWJpass!ordJ idWJretypeJ

ma%lengthWJ+9JVU#tdV

  U#trVUtrV

Page 57: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 57/87

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  UtdVGnbspXU#tdV

  U#trV

Utr bgcolorWJ^<<<<<<JV

  Utd colspanWJ/J alignWJcenterJ classWJstylemediumJV -esume

InformationU#tdV

  U#trV

Utr classWJstylesmallJV

  UtdV8pload -esume U#tdV

  Utd colspanWJ,JVUinput nameWJresumeJ typeWJfileJ V

 GnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspXUspan

classWJstyleredJV.doc .t%t .pdf file onlyU#spanVU#tdV

  U#trV

UtrV

  Utd colspanWJ/JVGnbspXU#tdV

  U#trV

Utr alignWJcenterJ classWJstylemediumJ bgcolorWJ^<<<<<<JV

  Utd colspanWJ/JVImage InformationU#tdV

  U#trV

Utr classWJstylesmallJV

  UtdV8pload Image U#tdV

  Utd colspanWJ,JVUinput typeWJfileJ nameWJimageJV

 GnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspXGnbspXUspan

classWJstyleredJVUspan classWJstyleredJV.jpg file And .gif file

onlyU#spanVU#tdV

U#trV

UtrV

  Utd colspanWJ/JVUspan classWJstyleredJV_ UemVmeans fields are

compulsoryU#emV U#spanVU#tdV

  U#trV

UtrV

Page 58: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 58/87

  Utd colspanWJ/J alignWJcenterJVUinput nameWJregisterJ typeWJsubmitJ

idWJregisterJ valueWJ-egisterJV

  Uinput nameWJresetJ typeWJresetJ idWJresetJ valueWJ-esetJV

  Uinput nameWJcloseJ typeWJbuttonJ idWJcloseJ valueWJ5loseJ

on5lic"WJself.locationWYStudentlogin.phpYJVU#tdV

  U#trV

  U#tableVU#tdV

  U#trV

  UtrV

  Utd !idthWJ*99OJ heightWJ0OJ alignWJcenterJVUKphp include

Y;ooter.phpYXKVU#tdV

  U#trV

  U#tableV

U#formV

U#bodyV

U#htmlV

StudentFRegi"trationFhandler*php

UKphp

include Y5onnect.phpYX

\flag W JsuccessJX

function rollbac"(ata?@Z

mysluery?J -==7A5) J@X

global \flagX

\flag W JerrorJX

if?myslerror?@ ]W null@Z

die?myslerror?@@X

[

[

\studentid W \1STYstidYNX

\studentpass W \1STYstpassYNX

\firstname W \1STYfirstnameYNX

Page 59: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 59/87

\lastname W \1STYlastnameYNX

\gender W \1STYgenderYNX

\contactno W \1STYcontactnoYNX

\ualification W \1STYualificationYNX

\city W \1STYcityYNX

\email* W \1STYemail*YNX

\email+ W \1STYemail+YNX

\address W \1STYaddressYNX

\description W \1STYdescriptionYNX

\resumename W JJX

\imagename W JJX

\dobdate W date?JH&m&dJstrtotime?\1STYdobYN@@X

#_

This bloc" is used to chec" !hether the studentid already e%its

in database.

_#

\selectueryWJselect studentid from studentinformation !here

studentid W Y\studentidYJX

\resultset W mysluery?\selectuery\lin"id@X

if?\ro! W myslfetcharray?\resultset@@Z

\flagWJe%istsJX

header?Jlocation:Studentlogin.phpK

flagW\flagGstudentidW\studentidJ@X

die?@X

[

elseZ

#_

This bloc" is used to insert the student record in database

if the studentid is already not present in the database.

_#

mysluery?JS<T A8T5MMIT W 9 J@X

if?myslerror?@ ]W null@Zdie?myslerror?@@X

Page 60: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 60/87

[

\uery W Jinsert into

studentinformation?studentidstudentpass!ordfirstnamelastnameregis

trationdategenderdateofbirthJX

\uery .W

Jstudentstatuscontactnoualificationcityemail*email+addressdescriptio

n@JX

\uery .W J

values?Y\studentidYY\studentpassYY\firstnameYY\lastnameYno!?@Y\gender 

YY\dobdateYY(isableYY\contactnoYJX

\uery .W

JY\ualificationYY\cityYY\email*YY\email+YY\addressYY\descriptionY@JX

 

\result W mysluery?\uery\lin"id@X

if?myslerror?@ ]W null@Z

die?myslerror?@@X

[

if?\result@Z

if?\;I=<SYresumeYNYnameYN ]W JJ@Z

\filename W \;I=<SYresumeYNYnameYNX

\e%t W strrchr?\filenameJ.J@X

\resumename W \studentidX

\resumename .W JJ.\filenameX

if?\e%t WWJ.t%tJ `` \e%t WWJ.docJ `` \e%t WWJ.TPTJ ``

\e%t WWJ.(5J `` \e%t WWJ.pdfJ `` \e%t WWJ.1(;J@Z

\siEe W \;I=<SYresumeYNYsiEeYNX

if?\siEe V 9 GG \siEe U *999999@Z

\archivedir W JresumesJX

\userfiletmpname W

\;I=<SYresumeYNYtmpnameYNX

if?moveuploadedfile?\userfiletmpname J\archivedir#\resumenameJ@@Z

Page 61: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 61/87

#_

if image is successfully

uploaded then resumename is stored in database.

_#

mysluery?Jupdate

studentinformation set resumeWY\resumenameY !here

studentidWY\studentidYJ \lin"id@X

if?myslerror?@ ]W null@Z

die?myslerror?@@X

[

\flag W JsuccessJX

[elseZ

rollbac"(ata?@X

[

[

elseZ

rollbac"(ata?@X

die?JHou can upload resume of * M7

siEe only. 1lease try again.J@X

[

[

elseZ

rollbac"(ata?@X

die?JHou can upload resume of .t%t .pdf

.doc e%tensions only. 1lease try again.J@X

[

[

if?\;I=<SYimageYNYnameYN ]W JJ@Z

\filename W \;I=<SYimageYNYnameYNX

\e%t W strrchr?\filenameJ.J@X

\imagename W \studentidX

\imagename .WJJ. \filenameX

if?\e%t WWJ.jpgJ `` \e%t WWJ.jpegJ `` \e%t WWJ.>1CJ ``\e%t WWJ.>1<CJ `` \e%t WWJ.gifJ `` \e%t WWJ.CI;J@Z

Page 62: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 62/87

\siEe W \;I=<SYimageYNYsiEeYNX

if?\siEe V 9 GG \siEe U *999999@Z

\archivedir W JimagesJX

\userfiletmpname W

\;I=<SYimageYNYtmpnameYNX

if?moveuploadedfile?\userfiletmpname J\archivedir#

\imagenameJ@@Z

#_

if image is successfully

uploaded then imagename is stored in database.

_#

mysluery?Jupdate

studentinformation set imageWY\imagenameY !here

studentidWY\studentidYJ \lin"id@X

\flag W JsuccessJX

if?myslerror?@]Wnull@Z

die?myslerror?@@X

[

[

elseZ

if?filee%ists?Yresumes#Y .

\resumename@@ Z

unlin"?Yresumes#Y .

\resumename@X

[

rollbac"(ata?@X

[

[

elseZ

if?filee%ists?Yresumes#Y .

\resumename@@ Z

unlin"?Yresumes#Y .\resumename@X

Page 63: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 63/87

[

rollbac"(ata?@X

die?JHou can upload image of * M7

siEe only. 1lease try again.J@X

[

[

elseZ

if?filee%ists?Yresumes#Y . \resumename@@ Z

unlin"?Yresumes#Y . \resumename@X

[

rollbac"(ata?@X

die?JHou can upload images of .jpg .jpeg

.gif e%tensions only. 1lease try again. J@X

[

[

[

elseZ

\flagWJerrorJX

[

if?\flag WW JsuccessJ@Z

mysluery?J 5MMIT J@X

\flagWJsuccessJX

if?myslerror?@ ]W null@Z

die?myslerror?@@X

[

#_

This bloc" is used to send email to the

successfully registered users.

_#

#_

\to W \email*X

\subject W Y5ongratulationsYX

\message W Y5ongratulations you are registered in oursite.RrRnRrRnYX

Page 64: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 64/87

\message .W JHour =ogin Id : \studentid RrRn 1ass!ord :

\studentpassJX

\headers W J;rom: infosims.comRrRnJX

\headers .W YP&Mailer: 1'1Y . phpversion?@X

mail?\to \subject \message \headers@X

_#

[

header?Jlocation:Studentlogin.phpKflagW\flagJ@X

die?@X

[

KV

AdminFEditFStudentFnfo*php

UKphp

sessionstart?@X

\sessionid W \S<SSIDYuseridYNX

if?\sessionid WW null@Z

  header?Jlocation:inde%.phpJ@X

  die?@X

[

 

include Y5onnect.phpYX

  \studentid W \-<8<STYstudentidYNX

  \uery W Jselect _ from studentinformation !here

studentidWY\studentidYJX  \result W mysluery?\uery \lin"id@X

  \data W myslfetcharray?\result@X

KV

UhtmlV

UheadV

Ulin" relWJstylesheetJ hrefWJStyle.cssJ typeWJte%t#cssJ#V

Umeta http&euivWJ5ontent&TypeJ contentWJte%t#htmlX charsetWiso&4406&*JVUtitleV<dit Student Information 7y AdminU#titleV

Page 65: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 65/87

Uscript srcWJBalidation.jsJVU#scriptV

Uscript typeWJte%t#javascriptJV

function validation?@

Z

if?document.form*.firstname.valueWWJJ@

Z

  alert?J1lease enter your first name.J@X

  document.form*.firstname.focus?@X

  return falseX

[

if?document.form*.lastname.valueWWJJ@

Z

  alert?J1lease enter your last name.J@X

  document.form*.lastname.focus?@X

  return falseX

[

if?document.form*.dob.valueWWJJ@

Z

  alert?J1lease enter your date of birth.J@X

  document.form*.dob.focus?@X

  return falseX

[

else

Z

  var date W document.form*.dob.valueX

  var yes W chec"(ate?date@X

  if?]yes@

Z

alert?J1lease <nter a valid date of birth.J@X

 document.form*.dob.focus?@X

 return falseX

[

 [if?document.form*.email*.valueWWJJ@

Page 66: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 66/87

Z

  alert?J1lease enter your primary email.J@X

  document.form*.email*.focus?@X

  return falseX

[

else

Z

  var is<mail W emailBalidator?document.form*.email*.value@X

  if?]is<mail@

  Z

alert?J1lease enter a valid primary email.J@X

document.form*.email*.focus?@X

return falseX

  [

[

if?document.form*.email+.value ]W JJ@

Z

  var is<mail W emailBalidator?document.form*.email+.value@X

  if?]is<mail@

  Z

alert?J1lease enter a valid secondary email.J@X

document.form*.email+.focus?@X

return falseX

  [

[

if?document.form*.address.value ]W JJ GG

document.form*.address.value.length V *99@Z

alert?JHou can enter address upto *99 characters only.J@

document.form*.address.focus?@X

return falseX

[

if?document.form*.description.value ]W JJ GG

document.form*.description.value.length V +99@Zalert?JHou can enter description upto +99 characters only.J@

Page 67: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 67/87

document.form*.description.focus?@X

return falseX

[

 

[

function SetAll?@

 Z

  document.form*.ualification.valueWJUKphp echo \dataYualificationYNXKVJX

  var gen W JUKphp echo \dataYgenderYNXKVJX

  var gend W document.form*.gender.lengthX

  for?var i W9X iUgendX i@

  Z

  if?document.form*.genderiN.value WW gen@

  document.form*.genderiN.chec"edWtrueX

[

 [

U#scriptV

U#headV

Ubody on=oadWJjavascript:SetAll?@JV

Uform nameWJform*J methodWJpostJ

actionWJAdmin<ditStudentInfo'andler.phpJ onSubmitWJreturn

validation?@JV

 Uinput typeWJhiddenJ nameWJstudentidJ valueWJUKphp echo \studentidX K

VXJV

  Utable !idthWJ*99OJ heightWJ*99OJ V

  Utr bgcolorWJ^<*<*<*JV

  Utd !idthWJ*99OJ heightWJ*0OJ alignWJcenterJVUKphp include

YAdmin'eader.phpYXKVU#tdV

  U#trV

  UtrV

  Utd !idthWJ*99OJ heightWJ49OJ alignWJcenterJVUtable !idthWJ49OJ

borderWJ*J cellpaddingWJ+J cellspacingWJ9J bordercolorWJ^<<<<<<JV  UtrV

Page 68: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 68/87

  Utd colspanWJ/J alignWJcenterJ bgcolorWJ^<<<<<<J

classWJstylebigJV<dit Student InformationU#tdV

  U#trV

  UtrV

  Utd colspanWJ/J alignWJcenterJVGnbspX

UKphp if?\C<TYflagYN WW JsuccessJ@ Z KV

Uspan classWJstyleredJVStudent Information updated

successfully.U#spanV

  UKphp [ else if?\C<TYflagYN WW JerrorJ@ Z KV

Uspan classWJstyleredJV<rror !hile updating student

information.1lease try againU#spanV

  UKphp [ KV U#tdV

U#trV

Utr classWJstylesmallJV

  Utd !idthWJ*6OJ alignWJleftJV;irst Dame : U#tdV

  Utd !idthWJ,9OJ alignWJleftJVUinput nameWJfirstnameJ typeWJte%tJ

idWJfirstnameJ valueWJUKphp echo \dataYfirstnameYNX KVJ

siEeWJ+0Jma%lengthWJ09JVU#tdV

  Utd !idthWJ*3OJ alignWJleftJV=ast nameU#tdV

  Utd !idthWJ,/OJ alignWJleftJVUinput nameWJlastnameJ typeWJte%tJ

idWJlastnameJ valueWJUKphp echo \dataYlastnameYNXKVJ siEeWJ+0J

ma%lengthWJ,9JVU#tdV

  U#trV

  Utr classWJstylesmallJV

  Utd heightWJ+6J alignWJleftJVCender : U#tdV

  Utd alignWJleftJVUinput nameWJgenderJ typeWJradioJ valueWJMaleJV

  MaleUinput nameWJgenderJ typeWJradioJ valueWJ;emaleJV

  ;emaleU#tdV

  Utd alignWJleftJV(ate f 7irthU#tdV

  Utd alignWJleftJVUinput nameWJdobJ typeWJte%tJ idWJdobJ siEeWJ*9J

ma%lengthWJ*9J valueWJUKphp echo date?Jd&m&

HJstrtotime?\dataYdateofbirthYN@@XKVJV

  ((&MM&HHHHU#tdV  U#trV

Page 69: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 69/87

  Utr classWJstylesmallJV

  Utd alignWJleftJVualification : U#tdV

  Utd alignWJleftJVUselect nameWJualificationJ idWJualificationJV

  Uoption valueWJ'igh SchoolJV'igh SchoolU#optionV

Uoption valueWJCraduateJVCraduateU#optionV

Uoption valueWJM5AJVM5AU#optionV

Uoption valueWJ75AJV75AU#optionV

Uoption valueWJMaster (egreeJVMaster (egreeU#optionV

  U#selectVU#tdV

  Utd alignWJleftJV5ontact DoU#tdV

  Utd alignWJleftJVUinput nameWJcontactnoJ typeWJte%tJ idWJcontactnoJ

valueWJUKphp echo \data\contactnoNXKVJ siEeWJ+0J ma%lengthWJ+9JVU#tdV

  U#trV

  Utr classWJstylesmallJV

  Utd alignWJleftJV1rimary <mail : U#tdV

  Utd alignWJleftJVUinput nameWJemail*J typeWJte%tJ idWJemail*J

valueWJUKphp echo \dataYemail*YNXKVJ siEeWJ+0J ma%lengthWJ*99JVU#tdV

  Utd alignWJleftJVSecondary <mailU#tdV

  Utd alignWJleftJVUinput nameWJemail+J typeWJte%tJ idWJemail+J

valueWJUKphp echo \dataYemail+YNXKVJ siEeWJ+0J ma%lengthWJ*99JVU#tdV

  U#trV

  Utr classWJstylesmallJV

  Utd alignWJleftJV5ity : U#tdV

  Utd colspanWJ,J alignWJleftJVUinput nameWJcityJ typeWJte%tJ idWJcityJ

valueWJUKphp echo \dataYcityYNXKVJ siEeWJ+0J ma%lengthWJ,9JVU#tdV

  U#trV

  Utr classWJstylesmallJV

  Utd alignWJleftJVAddress : U#tdV

  Utd colspanWJ,J alignWJleftJVUte%tarea nameWJaddressJ ro!sWJ+J

colsWJ/9JVUKphp echo \dataYaddressYNXKVU#te%tareaVU#tdV

  U#trV

Utr classWJstylesmallJV

  Utd alignWJleftJV(escription : U#tdV

Page 70: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 70/87

  Utd colspanWJ,J alignWJleftJVUte%tarea nameWJdescriptionJ ro!sWJ,J

colsWJ/9JVUKphp echo \dataYdescriptionYNXKVU#te%tareaVU#tdV

  U#trV

  UtrV

  Utd colspanWJ/JVGnbspXU#tdV

  U#trV

  UtrV

  Utd colspanWJ/J alignWJcenterJVUinput nameWJupdateJ typeWJsubmitJ

idWJupdateJ valueWJ8pdateJV

  Uinput nameWJcloseJ typeWJbuttonJ idWJcloseJ valueWJ5loseJ

on5lic"WJself.locationWY(isplayAll.phpYJVU#tdV

  U#trV

  U#tableVU#tdV

  U#trV

  Utr bgcolorWJ^<*<*<*JV

  Utd !idthWJ*99OJ heightWJ0OJ alignWJcenterJVUKphp include

Y;ooter.phpYXKVU#tdV

  U#trV

  U#tableV

U#formV

U#bodyV

U#htmlV

AdminFEditFStudentFnfoF$andler 

UKphp

sessionstart?@X

\sessionid W \S<SSIDYuseridYNX

if?\sessionid WW null@Z

  header?Jlocation:inde%.phpJ@X

  die?@X

[

Page 71: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 71/87

include Y5onnect.phpYX

\studentid W \1STYstudentidYNX

\firstname W \1STYfirstnameYNX

\lastname W \1STYlastnameYNX

\gender W \1STYgenderYNX

\contactno W \1STYcontactnoYNX

\ualification W \1STYualificationYNX

\city W \1STYcityYNX

\email* W \1STYemail*YNX

\email+ W \1STYemail+YNX

\address W \1STYaddressYNX

\description W \1STYdescriptionYNX

\dateofbirth W date?JH&m&dJstrtotime?\1STYdobYN@@X

\flag W JJX

  \uery W Jupdate studentinformation set

firstnameWY\firstnameYlastnameWY\lastnameYgenderWY\genderYdateof 

birthWY\dateofbirthYJX

  \uery .W

JualificationWY\ualificationYcontactnoWY\contactnoYemail*WY\email*Yemail

+WY\email+YcityWY\cityYaddressWY\addressYdescriptionWY\descriptionY JX

  \uery .W J !here studentidWY\studentidYJX

\result W mysluery?\uery \lin"id@X

if?myslerror?@ ]W null@Z

die?myslerror?@@X

[

if?\result@

Z

\flag W JsuccessJX

[

  else

Z

 \flag W JerrorJX

[

Page 72: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 72/87

header?Jlocation:Admin<ditStudentInfo.phpK

flagW\flagGstudentidW\studentidJ@X

KV

+alidation*&"

function chec"(ate?dobStr@

Z

var arr W dobStr.split?#&#@X

if?arr.length ]W ,@Z

return falseX[

var ddStr W arr9NX

var mmStr W arr*NX

var yyStr W arr+NX

if?isDaD?ddStr@@Z

return falseX

[if?isDaD?mmStr@@Z

return falseX

[

if?isDaD?yyStr@@Z

return falseX

[

ddWparseInt?ddStr*9@X

mmWparseInt?mmStr*9@X

yyWparseInt?yyStr*9@X

if?dd U * `` dd V ,*@Z

return falseX

[

if?mm U * `` mm V *+@Z

Page 73: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 73/87

Page 74: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 74/87

[

else

Z if?yyO/WW9@Z

if?ddUW+6@

return trueX

else

return falseX

[

[

if?ddUW+4@

Z return trueX

[

else

Z return falseX

[

default :

return falseX

[

[

function emailBalidator?elem@

Z

var email<%p W #R!R&R.RNRa&EA&Q9&6R.R&NR.a&EA&E9&6NZ+/[\#X

if?elem.match?email<%p@@

Z

return trueX

[

else

Z

return falseX

[

[

Style*c""

Page 75: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 75/87

body Z

margin&left: 9p%X

margin&top: 9p%Xmargin&right: 9p%X

margin&bottom: 9p%X

[

.stylebig Z

font&siEe: *4p%X

font&family: JTimes De! -omanJ Times serifX

font&!eight: boldX

[

.stylemedium Z

font&siEe: */p%X

font&family: JTimes De! -omanJ Times serifX

font&!eight: boldX

[

.stylesmall Z

font&family: JTimes De! -omanJ Times serifX

font&siEe: *+p%X

font&!eight: boldX

[

.stylegreen Zfont&family: JTimes De! -omanJ Times serifX font&siEe: *+p%X

font&!eight: boldX color: ^993;99X [

.stylered Z

font&siEe: *+p%X

font&family: JTimes De! -omanJ Times serifX

color: ̂ ;;9999X

font&!eight: boldX

[

.stylegrey Zfont&family: JTimes De! -omanJ Times serifX font&siEe: *+p%X

font&!eight: boldX color: ^009900X [

Page 76: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 76/87

.stylegreyre Zfont&family: JTimes De! -omanJ Times serifX font&siEe: *+p%X

font&!eight: boldX color: ^555X [

.stylelin" Zfont&family: JTimes De! -omanJ Times serifX font&siEe: *+p%X font&

!eight: boldX color: ^AA9999X [

.stylelin"+ Zfont&family: JTimes De! -omanJ Times serifX font&siEe: *+p%X

font&!eight: boldX color: ^666X [

Connect*php

UKphp

\host W JlocalhostJX

\dbusername W JrootJX

\dbpass!ord W JJX

\dbname W JstudentJX

 

\lin"id W myslconnect?\host \dbusername \dbpass!ord@X

if?]\lin"id@Z

die?myslerror?J5ant 5onnect To databaseJ@@X

[

elseZ

\db W myslselectdb?\dbname \lin"id@X

[

if?]\db@Z

die?myslerror?J5ant select databaseJ@@X

[

returnX

KV

SNAPS$OTS

Page 77: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 77/87

This is the homepage#inde%page of the site.

This is the student login page.

Page 78: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 78/87

This is the registration page !here students can register online.

 After successful registration the user account needs to be first enabled by the

administrator.The students can then login into their accounts !ith the id and

pass!ord they choose during registration.The above page sho!s student login page.

Page 79: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 79/87

 After logging in the student home page is opened as sho!n above.

The student can vie! their profile.The above page sho!s the user profile.The lin" to

the resume is sho!n if a resume !as uploaded during registration other!ise its not

sho!n.

Page 80: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 80/87

Students can edit their profiles by using the edit profile option on their homepage.the

above page is used for editing student information.

The students have the option to change their pass!ord.They need their old

pass!ord in order to change the pass!ord.

Page 81: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 81/87

 After successful operation a pass!ord change notification is displayed to the user.

The above page is the administrator login page. It reuires the administrator

username and pass!ord.

Page 82: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 82/87

This is the homepage of administrator.

This is the displayall page !herein the administrator can see all the registered

students.'e can enable#disable their accounts as !ell as vie!#edit students

information.

Page 83: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 83/87

This page sho!s the change in account status.after successful change a message is

displayed to the administrator.

This is the search page and it provides search function to the administrator.here !e

search for all the students !ith theirs accounts enabled.

Page 84: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 84/87

This is the search result display page.the administrator can vie! profile of any of the

searched students from here.If there are no results then an appropriate message is

displayed.

Page 85: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 85/87

SCOPE O1 T$E PROJECT

The Student Information Management System?SIMS@ can be enhanced to

include some other functionality li"e mar"sattendance management.

Talent management of students based on their performance evaluation

can be added.

Social net!or"ing can also be added !herein students can interact !ith

each other.

nline class functionality can be added.

5an evolve as an online institution.

;unctionality of chat and messages can be added. nline e%am functionality can be added.

nline resume builder functionality can also be added.

Page 86: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 86/87

CONTRB.TON N T$E PROJECT

Student information management system lead to a better organiEation structure

since the information management of the students is !ell structured and also lead to

better as !ell as efficient utiliEation of resources.

Student Information Management System can be used by education institutes to

maintain the records of students easily. Achieving this objective is difficult using a

manual system as the information is scattered can be redundant and collecting

relevant information may be very time consuming. All these problems are solved

using this project

ur project Student Information Management System !as developed by all three of

us.$e a team of three persons too" a step by step approach in order to reach our

goal.$e applied the "no!ledge !e gained during our training period at EN

Technologie" P5t* -td*  and developed this project 2ST.%ENT N1OR)ATON

)ANA'E)ENT S6STE)3.

Page 87: Student Information Management System Php Mysql

8/13/2019 Student Information Management System Php Mysql

http://slidepdf.com/reader/full/student-information-management-system-php-mysql 87/87

Bibliography

• 1'1 boo" by Basvani ?TM' publications@.

• 7eginning 1'10 by $-P.

• !!!.google.com.

• !!!.!i"ipedia.com

• !!!.!,schools.com

• Informatics practices by Sumita Arora.

• 'ead ;irst 1'1 G MyS= by =ynn 7eighley and Michael Morrison?F-eilly@