You are on page 1of 57

Railway Reservation System

PREPARED BY

Nutan vadodariya. Nilam Vihol Komal Modha

Held in Aril!"#$$
By
SA%RASH&RA %N'VERS'&Y
RA(K)&
1
1

SHR' P.K.M *)++E,E )- &E*H
)PP.HAVE+' .AAD'/ Nr. S.& *)++)NY/
*)++E,E R)AD /
(%NA,ADH 01# ##".
'NS&'&%&')N

2
2
SR N). *)N&EN&S
$ De2laration
" Pro3e2t Pro4ile
0 A25nowled6ement
7 So4tware reuirement
8 Data9ase analysis
1 Data 4low dia6ram
: -orm desi6n
; Sour2e 2ode
< *on2lusion
$# Bi9lo6rahy
3
3

I am Nutan Vadodariya, The Student P.G.D.C.A. here by declare that the ro!ect
"or# entitled a$ RA'+.AY RESERVA&')N SYS&EM i$ re$ult o% my "or# and my
indebtedne$$ to other "or# ublication, i% any ha&e been duly ac#no"led'ed.
Date( 1)
th
*un 2++,
Place( *-NAGAD.

SIGNAT-/0
1
1

I am Nilam Vihol The Student o%
P.G.D.C.A. here by declare that the ro!ect"or# entitled a$ RA'+.AY
RESERVA&')N i$ re$ult o% my "or# and mindebtedne$$ to other "or# ublication,
i% any ha&e been duly ac#no"led'ed.
Date( 1)
th
*une 2++,
Place( *-NAGAD.


SIGNAT-/0


)
)
I am 2omal 3odha The Student o% P.G.D.C.A. here by declare that the
ro!ect "or# entitled a$ RA'+.AY RESERVA&')N i$ re$ult o% my "or# and
mindebtedne$$ to other "or# ublication, i% any ha&e been duly ac#no"led'ed.
Date( 1)
th
*une 2++,
Place( *-NAGAD.

SIGNAT-/0

4
4

Project title ( /ail"ay /e$er&ation
Front end tools ( h
Back and tools ( my$5l
Project guide ( 3i$$. Seema 2ho#har
3i$$. S"eta Patel
P23 C6770G0 68 T0C...
Developed by ( Nutan Vadodariya 9 :
Nilam Vihol 9 :
2omal 3odha 9 :

Operating system ( "indo"$ ;P
<
<
Project duration ( 14 "ee#$
=N6 P/0P/ATI6N >IT.6-T INSPI/ATI6N? a$ it i$ true that %or
any "or# you need $ome 'uide line it i$ al$o nece$$ary to ha&e roer 'uidin' er$on
I am 5uite luc#y that I 'ot %ull $uort %rom emloyee$ o% S./00 P. 2. 3.
C6770G0 68 T0C.N676G@.
ItA$ a 'reat honor$ and lea$ure %or me to eBre$$ my %eelin' in "ord$
=Than#$?. .o"e&er thi$ "ord cannot eBre$$ my %eelin' about all the concerned
er$on, then al$o let me eBre$$ in the "ord =Than#$.?
I am &ery much than#%ul to S"eta atel and Seema 2ho#har %or their
coCoeration and 'uidance.


D
D

BACK-ED ! "#$%&
F'O(-ED ! P)P
)A'D*A'E 'E%+,'E"E( !
1+GE .DD
11?color monitor
)12mb /A3
2eyboard F mou$e
In#!et rinter
,
,
)2;cdCrom dri&e and "riter
$OF(*A'E 'E%+,'E"( !
>indo"$ ;P
3$ o%%ice 2+++
>A3P
/DE3SC3y S5l
1+
1+

+),'N
Fieldname Type Size
Username Varchar 10
Password Varchar 10
&RA'N=MAS&ER
Fieldname Type Size
Train_no Int 4
Train_name Varchar 50
Source Varchar 30
Destination Varchar 30
Arr_time Time
Dept_time Time
Day_in_week Varchar 40
Dist_in_km Int 5
11
11
R))& MAS&ER
Fieldname Type Size
Train_no Int 4
Station Varchar 30
! Int 5
Arr_time Time
Dept_time Time
*)A*H MAS&ER
Fieldname Type Size
Train_no Int 4
"oach_id #ar$inary %
"oach_name #archar 30
"&ach_per_seat Int 3
"har'e_per_km ()oat
*o_o+_coach Int 3
PASSEN,ER DE&A'+
Fieldname Type Size
Ticket_no Int ,
-oo'ie_no Int 3
Seat_no Varchar 5
*ame Varchar 25
A'e Int 5
.ender Varchar 1
"ontact_no Varchar 10
12
12
RESERVA&')N MAS&ER
Fieldname Type Size
Train_no Int 4
Train_name Varchar 50
Arr_time Time
/eser#e_date Date
"oach Varchar 30
Station_(rom Varchar 30
Station_To Varchar 30
/eser#e_time Time
! Int 5
0ourney_date Varchar 10
Ticket_no Int ,
&RANSA*&')N MAS&ER
Fieldname Type Size
Train_no Int 4
0ourney_date Varchar 10
")ass Varchar 30
Tota)_seat Int 5
/eser#ed_seat Int 5
Unreser#e_seat Int 5
/eser#e_time Time
seat_no Varchar 5
Ticket_no Int ,
*AN*E++A&')N
Fieldname Type Collation
Train_no Int 4
Ticket_no Int 5
"ance))ation_date Date
1ourney_date Date
13
13
Fieldname
Type Collation
(air Int 2
11
11
&his s2reen will dislay the lo6in ro2ess.
> inde?.h@
ABh
session=start>@C
i4>isset>D=P)S&EFsu9$FG@@
H
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
DresJmysIl=Iuery>Fsele2t K 4rom lo6in where usernameJLF.
D=P)S&ELunameLG.FLF@C

D2J$C
while>DrowJmysIl=4et2h=asso2>Dres@@
H
i4>DrowEFusernameFGJJD=P)S&EFunameFG MM
DrowEFasswordFGJJD=P)S&EFassFG@
H
D=SESS')NEFunameFGJDrowEFusernameFGC
session=re6ister>FunameF@C
1)
1)
header>Flo2ationNinde?$.hF@C
D2J#C
O
O
i4>D2JJ$@
H
e2ho FAH$ A+',NJL*EN&ERLPA-)N& S'QEJLR0L *)+)RJLREDLPAuP'nvalid
%sername M PasswardASuPAS4ontPASH$PFC
O
O
BP
A9ody 962olorJFT##**--F te?tJFT--****FP
A9rPA9rPA9rPA9rPA9rP
Ah$ ali6nJF2enterFPAuP+),'N -)RMASuP
A4orm nameJFlo6inF a2tionJFTF methodJFostFP
Enter %sernameN
Ainut tyeJFte?tF nameJLunameL ta9inde?JF$FPA9r SP
Enter PasswordN
Ainut tyeJFasswordF nameJFassFPA9rP
Ainut tyeJFsu9mitF nameJFsu9$F valueJFS',N 'NFP
AS4ormP
AS9odyP
>'nde?$.h@
ABh
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FA9rPA9rPA9rPA9rPAreP Ah" ali6nJL2enterLP .E+*)ME
&) )%R RA'+.AY MM EN()Y
()%RNY.........ASh"PASrePA9rPA9rPA9rPA9rPA9rPA9rPA9rPA9rPA9rPA9rPA9
rPFC
e2ho D4ooterC
BP
A9ody 962olorJFT<<**<<F te?tJFT<<1100FPAS9odyP
>Header.h@
ABh
14
14
DheaderJFAhtml ?mlnsJLhttNSSwww.w0.or6S$<<<S?htmlL ?mlNlan6JLenL
lan6JLenLP
AheadP
Ameta nameJLDes2ritionL 2ontentJL'n4ormation ar2hite2ture/ .e9 Desi6n/ .e9
Standards.L SP
Ameta nameJLKeywordsL 2ontentJLyour/ 5eywordsL SP
Ameta htt!eIuivJL*ontent!&yeL 2ontentJLte?tShtmlC 2harsetJiso!;;8<!$L SP
Ameta nameJLDistri9utionL 2ontentJL,lo9alL SP
Ameta nameJLAuthorL 2ontentJLErwin Ali6am ! eali6amU6mail.2omL SP
Ameta nameJLRo9otsL 2ontentJLinde?/4ollowL SP
Alin5 relJLstylesheetL hre4JLima6esSEnvision.2ssL tyeJLte?tS2ssL SP
AtitlePEnvisionAStitleP
ASheadP
A9odyP
AV!! wra starts here !!P
Adiv idJLwraLP
AV!!header !!P
Adiv idJLheaderLP
Ah$ idJLlo6o!te?tLPAaPRA'+.AY
RESERVA&')NASaPASh$P
Adiv idJLheader!lin5sLP
ASdivPASdivPFC
BP
>Menu.h@
ABh
DmenuJFAdiv idJLmenuLP
AulP
Ali idJL2urrentLPAa hre4JLinde?$.hLPHomeASaPASliP
Ali idJL2urrentLPAa hre4JLinIuiry.hLP'nIuiryASaASliP
Ali 2lassJLlastLPAa hre4JLtrain=detail.hLP&rain=DetailASliP
AliPAa hre4JLroot=detail.hLPRoot=DetailASaPASliP
AliPAa hre4JL2oa2h=detail.hLP*oa2h=detailASaPASliP
AliPAa hre4JLreservation.hLPReservation ASaPASliP
AliPAa hre4JL2an2ellation.hLP*an2ellationASaPASliP
AliPAa hre4JLlo6out.hLP+o6outASaPASliP
ASulP
ASdivPFC
BP
>-ooter.h@
ABh
D4ooterJFAdiv idJL4ooterLP
APAuPAiP&HANKS -)R V'S'&AS'PAS%PABRP
1<
1<
AemPDeveloe 9yASemPN
AaPAstron6PD)BAR'YA PRA&'BHA Mn9sCMn9sCMn9sC
M Mn9sCMn9sCMn9sC VADA+'YA VARSHAASstron6PASaP
ASP
ASdivPFC
BP
'4 user enters the invalid username or assword /then the 4ollowin6 s2reen will
dislay.
'4 user enters the valid username M assword / then the 4ollowin6 s2reen will
dislay(
&he 4ollowin6 S2reen will 9e dislay the 'nIuiry in4ormation/ when user 2li25 on
'nIuiry menu.
1D
1D
>'nIuiry.h@
ABh
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FAh$ ali6nJL2enterLPA4orm nameJL4$L a2tionJLTL methodJLostLP
AuPSEAR*H -)R R))& )- &RA'NASuPA9rPA9rP
Station -romN
Ainut tyeJLte?tL nameJL4romLPA9rP
Station &oN
Ainut tyeJLte?tL nameJLtoLPA9rP
Ainut tyeJLsu9mitL nameJLtestL valueJLSEAR*HLP
AS4ormPASh$PFC
i4>isset>D=P)S&ELtestLG@@
H
DIueryJFsele2t train=no 4rom root=mast where stationJLF.D=P)S&EL4romLG.FL
MM train=no in>sele2t train=no 4rom root=mast where stationJLF.
D=P)S&ELtoLG.FL@FC
DresJmysIl=Iuery>DIuery@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as Dval@
H
1,
1,
DaJDvalC
O
O
DIueryJFsele2t train=no/train=name/sour2e/destination/arr=time/det=time
4rom train=mast where train=noJLF.Da.FLFC
DresJmysIl=Iuery>DIuery@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJLredLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
D2ntJ#C
while>DarrJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPDvalueAStdPF@C
O
rint>FAStrPF@C
O
rint>FASta9lePF@C
O
DIueryJFsele2t train=no 4rom transa2tion=mast where train=noJLF.Da.FLFC
DresJmysIl=Iuery>DIuery@C
while>DrowJmysIl=4et2h=array>Dres@@
H
4orea2h>Drow as Dval@
DaJDvalC
O
DIJFsele2t sum>reserved=seat@ 4rom transa2tion=mast where train=noJLF.Da.FLFC
DresJmysIl=Iuery>DI@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as Dval@
H
DaJDvalC
O
O
DurJ8:1!DaC
e2ho FAh$ ali6nJL2enterLP&otal=seatJAinut tyeJLte?tL nameJLtotalL valueJL8:1L
disa9ledPA9rP
Reserved=seatJAinut tyeJLte?tL nameJLreserveL valueJDaPA9rP
%nreserved=seatJAinut tyeJLte?tL nameJLunreserveL valueJDurPASh$PFC
e2ho FA9rPF.D4ooterC
2+
2+
BP
>My2on.h@
ABh
Dlin5JmysIl=2onne2t>Flo2alhostF/FrootF/FF@C
i4>VDlin5@
H
die>L2annot 2anne2tL.mysIl=error>@@C
O
BP
21
21
&he 4ollowin6 S2reen will 9e dislay the &rain detail/ when user 2li25 on
&rain=detail menu.
>&rain=detail.h@
ABh
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FA9rPA9rPAh$
ali6nJL2enterLPAuP&RA'N=DE&A'+ASuPASh$PFC
DIueryJFsele2t
train=no/train=name/sour2e/destination/arr=time/det=time 4rom
train=mastFC
DresJmysIl=Iuery>DIuery@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
22
22
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
D2ntJ#C
while>DarrJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
i4>D2ntX"JJ#@
H
rint>FAtr 962olorJLT##**44LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPXsAStdPF/Dvalue@C
O
rint>FAStrPF@C
O
else
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPXsAStdPF/Dvalue@C
O
rint>FAStrPF@C
O
D2ntRRC
O
rint>FASta9lePF@C
e2ho FA9rPA9rPA9rPF.D4ooterC
BP
23
23
&he 4ollowin6 S2reen will 9e dislay/ when user 2li25 on Root=detail menu.
>Root=detail.h@
ABh
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FA9rPA9rPA9rPA9rPA9rPA9rP
Ah$ ali6nJL2enterLPA9PAuPR))& 'N-)RMA&')NAS9PASuPA9rPA9rPA9rP
Aa hre4JLall=root.hLPA9PAll Root o4 All &rainAS9PASaPA9rPA9rP
Aa hre4JLsele2ted=root.hLPA9PAll Root o4 Sele2ted &rainAS9PASaPFC
e2ho FA9rPA9rPA9rPA9rPA9rPA9rPA9rPF.D4ooterCBP
'4 you sele2t YAll Root o4 All &rainZ otin 4rom [root=detail\/then the 4ollowin6
s2reen will 9e dislay.

21
21
>all=root.h@
ABh
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FAh$ ali6nJL2enterLPAuPA++=R))&ASuPASh$PFC
DIueryJFsele2t K 4rom root=mastFC
DresJmysIl=Iuery>DIuery@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@CD2ntJ#C
while>DarrJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
i4>D2ntX"JJ#@
H
rint>FAtr 962olorJLT##**44LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPXsAStdPF/Dvalue@C
Orint>FAStrPF@C
O
else
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPXsAStdPF/Dvalue@C
O
rint>FAStrPF@C
OD2ntRRC
O
rint>FASta9lePF@C
e2ho YA9rPA9rPA9rPZ.D4ooterC
BP
2)
2)
'4 user sele2t Yall root o4 sele2ted trainZ otion 4rom root=master/then the
4ollowin6 s2reen will 9e dislay.
'4 user sele2t &rain=no 4rom dislayed 2om9o 9o?/
&hen the 4ollowin6 s2reen will 9e dislay.
24
24
>Sele2ted=root.h@
ABh
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
DIueryJFsele2t train=no 4rom train=mastFC
DresJmysIl=Iuery>DIuery@C
e2ho FAh$ ali6nJL2enterLPA4orm nameJL4$L methodJLostL a2tionJLTLP
Asele2t nameJLtrainLPAotionPsele2t trainASotionPFC
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as D5eyJPDval@
H
e2ho FAotionPDvalASotionPFC
O
O
e2ho FASsele2tPFC
e2ho FA9rPA9rPAinut tyeJLsu9mitL nameJLsu9L valueJLa22etLP
AS4ormPASh$PFC
i4>isset>D=P)S&ELsu9LG@@
H
DIueryJFsele2t K 4rom root=mast where &rain=noJLF.D=P)S&ELtrainLG.FLFC
DresJmysIl=Iuery>DIuery@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
D2ntJ#C
while>DarrJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
i4>D2ntX"JJ#@
H
rint>FAtr 962olorJLT##**44LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPXsAStdPF/Dvalue@C
2<
2<
O
rint>FAStrPF@C
O
else
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPXsAStdPF/Dvalue@C
O
rint>FAStrPF@C
O
D2ntRRC
O
rint>FASta9lePF@C
O
e2ho D4ooterC
BP
2D
2D
&he 4ollowin6 s2reen will 9e dislay 2oa2h=detail/ when user 2li25 on
2oa2h=detail menu.
>*oa2h=detail.h@
ABh
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FA9rPA9rPAh$ ali6nJL2enterLPAuP*)A*H=DE&A'+ASuPASh$PFC
DIueryJFsele2t distin2t 2oa2h=id/2oa2h=name/2oa2h=er=seat/2har6e=er=5m
4rom 2oa2h=detailFC
DresJmysIl=Iuery>DIuery@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
2,
2,
rint>FAStrPF@C
D2ntJ#C
while>DarrJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
i4>D2ntX"JJ#@
H
rint>FAtr 962olorJLT##**44LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPXsAStdPF/Dvalue@C
O
rint>FAStrPF@C
O
else
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Darr as D5eyJPDvalue@
H
rint4>FAtdPXsAStdPF/Dvalue@C
O
rint>FAStrPF@C
O
D2ntRRC
O
rint>FASta9lePF@C
e2ho FA9rPA9rPA9rPF.D4ooterC
BP
3+
3+
&he 4ollowin6 s2reen will 9e dislay 4or reservation/ when user 2li25 on
reservation menu.
>Reservation.h@
ABh
session=start>@C
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
i4>isset>D=P)S&ELo5LG@@
H
D=SESS')NELtrainnoLGJ D=P)S&ELtrainnoLGC
session=re6ister>LtrainnoL@C
header>F+o2ationN reserve=train.hF@C
O
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FA9rPA9rPA9rPAla9elPAh$
ali6nJL2enterLPAuPReservationASuPASh$PASla9elPFC
e2ho FA4orm nameJL4$L methodJLostL a2tionJLreservation.hLP
31
31
Ata9le ali6nJL2enterLPAtrP
Atd P&rain no AStdP
AtdPAsele2t nameJLtrainnoLPAotionPsele2t trainASotionPFC
DIueryJFsele2t train=no 4rom train=mastFC
DresJmysIl=Iuery>DIuery@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as D5eyJPDval@
H
e2ho FAotionPDvalASotionPFC
O
O
e2ho FASsele2tPAStdPAStrP
AtrPAtdPAinut tyeJLsu9mitL valueJLsendL nameJLo5LPAStdP
ASta9leP
AS4ormPFC
e2ho FA9rPA9rPA9rPA9rPA9rPF.D4ooterC
BP
32
32
&he 4ollowin6 s2reen will 9e dislay train=in4ormation 4or reservation/ when user
sele2t train=no 4rom 2om9o 9o? in reservation.h.
>Reserve=train.h@
ABh
session=start>@C
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
i4>isset>D=P)S&ELreserveLG@@
H
D=SESS')NELnmLGJD=P)S&ELtrainnameLGC
session=re6ister>LnmL@C
D=SESS')NELtimeLGJD=P)S&ELtimeLGC
session=re6ister>Larr=timeL@C
D=SESS')NELdateLGJD=P)S&ELre=dtLGC
session=re6ister>LdateL@C
D=SESS')NEL2oa2hLGJD=P)S&EL2oa2hLGC
session=re6ister>L2oa2hL@C
D=SESS')NEL4romLGJD=P)S&EL4romLGC
session=re6ister>L4romL@C
D=SESS')NELtoLGJD=P)S&ELtoLGC
session=re6ister>LtoL@C
D=SESS')NELre=timeLGJD=P)S&ELre=timeLGC
session=re6ister>Lre=timeL@C
33
33
D=SESS')NEL5mLGJD=P)S&EL5mLGC
session=re6ister>L5mL@C
header>F+o2ationNessen6er=detail.hF@C
O
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
i4>isset>D=SESS')NELtrainnoLG@@
H
DIueryJFsele2t train=name 4rom train=mast where train=noJLF.
D=SESS')NELtrainnoLG.FLFC
DresJmysIl=Iuery>DIuery@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as Dval@
H
DaJ DvalC
O
O
DIueryJFsele2t arr=time 4rom train=mast where train=noJLF.
D=SESS')NELtrainnoLG.FLFC
DresJmysIl=Iuery>DIuery@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as Dval@
H
D9J DvalC
O
O
O
e2ho DheaderC
e2ho DmenuC
e2ho FAh$ ali6nJL2enterLPAuP&RA'N=DE&A'+ASuPASh$PA9rPFC
e2ho FA4orm nameJL4$L a2tionJLTL methodJLostLP
Ata9le ali6nJL2enterLP
AtrP
AtdP&rain nameAStdP
AtdPAinut tyeJLte?tL nameJLtrainnameL valueJDaPAStdP
AStrP
AtrP
AtdPArr timeAStdP
AtdPAinut tyeJLte?tL nameJLtimeL valueJD9PAStdP
AStrP
AtrP
AtdPReserve date AStdP
AtdPAinut tyeJLte?tL nameJLre=dtL valueJLF.date>LY!n!3L@.FLP
AStdP
AStrP
AtrP
31
31
AtdPReserve timeAStdP
AtdPAinut tyeJLte?tL nameJLre=timeL valueJLF.date>LHNiNsL@.FLP
AStdP
AStrP
AtrP
AtdP*oa2hAStdP
AtdPAsele2t nameJL2oa2hLPAotionPsele2t 2oa2h nameASotionPFC
DIueryJFsele2t distin2t 2oa2h=name 4rom 2oa2h=detailFC
DresJmysIl=Iuery>DIuery@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as D5eyJPDval@
H
e2ho FAotionPDvalASotionPFC
O
O
e2ho FAStdP
AStrP
AtrP
AtdPStation -romAStdP
AtdPAinut tyeJLte?tL nameJL4romLPAStdP
AStrP
AtrP
AtdPstation &o AStdP
AtdPAinut tyeJLte?tL nameJLtoL PAStdP
AStrP
AtrP
AtdPKMAStdP
AtdPAinut tyeJLte?tL nameJL5mLP
AStrP
AtrP
AtdPAinut tyeJLsu9mitL valueJLa22etL nameJLreserveL on2li25JL
return 2he25>4$@LPAStdP
AtdP
AStrPASta9lePAS4ormPFC
e2ho D4ooterC
BP
As2rit lan6ua6eJF3avas2ritFP
4un2tion 2he25>4orm?@
H
i4>4orm?.4rom.valueJJLL ]] 4orm?.to.valueJJLL ]] 4orm?.5m.valueJJLL@
H
alert>FP+EASE A&&EMP& A++ 'N-)RMA&')NF@C
return 4alseC
4orm?.4rom.4o2us>@C
O
O
ASs2ritP
3)
3)
&he 4ollowin6 s2reen will 9e dislay/ when user not 4ill u all in4ormation 4rom
[reserve=train.h\.
34
34
&he 4ollowin6 s2reen will 9e dislay assen6er=in4ormation 4orm 4or reservation/
when user 4ill u all in4ormation and 2li25 on a22et 9utton 4rom
[train=detail.h\.
>assen6er=detail.h@
ABPHP
session=start>@C
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
i4>isset>D=P)S&ELreservationLG@@
H
D=SESS')NELseatLGJD=P)S&ELseatLGC
session=re6ister>LseatL@C
D=SESS')NEL3=dateLGJD=P)S&EL3=dateLGC
session=re6ister>L3=dateL@C
D=SESS')NELti25etnoLGJD=P)S&ELti25etnoLGC
session=re6ister>Lti25etnoL@C
D=SESS')NELa6eLGJD=P)S&ELa6eLGC
session=re6ister>La6eL@C
DseatJD=SESS')NELseatLGC
DnoJD=SESS')NELtrainnoLGC
D3dtJD=SESS')NEL3=dateLGC
Dti25etnoJD=SESS')NELti25etnoLGC
3<
3<
DIJFSE+E*& K -R)M transa2tion=mast .HERE &rain=noJ LF.Dno.FL
MM Seat=noJLF.Dseat.FL MM (ourney=dateJLF.D3dt.FLFC
DresJmysIl=Iuery>DI@C
DtJ#C
while>DrowJmysIl=4et2h=row>Dres@@
H
DtJ$C
O
i4>Dt@
H
e2ho FAh$ ali6nJL2enterLPAuPS)RRY/&H'S SEA& 'S A++READY
RESERVEDASuP
A4orm nameJL4$L methodJLostL a2tionJLreservation.hLP
A9rPAinut tyeJLsu9mitL valueJLBA*KLPAS4ormPASh$PFC
O
else
H
D9oo6ieJD=P)S&EL9oo6ieLGC
DseatJD=P)S&ELseatLGC
DnameJD=P)S&ELnmLGC
Da6eJD=P)S&ELa6eLGC
D6enderJD=P)S&EL6enderLGC
D2onte2tJD=P)S&EL2onte2tLGC
DIueryJFinsert into Pessen6er=Detail
>&i25et=no/Boo6ie=no/Seat=no/Name/A6e/,ender/*onta2t=no@
values>LF.Dti25etno.FL/LF.D9oo6ie.FL/LF.Dseat.FL/LF.Dname.FL/LF.Da6e.FL/LF.
D6ender.FL/LF.D2onte2t.FL@FC
DresJmysIl=Iuery>DIuery@C
DnoJD=SESS')NELtrainnoLGC
DnmJD=SESS')NELnmLGC
DtimeJD=SESS')NELtimeLGC
DdateJD=SESS')NELdateLGC
D2oa2hJD=SESS')NEL2oa2hLGC
Dsour2eJD=SESS')NEL4romLGC
DdestJD=SESS')NELtoLGC
Dre=timeJD=SESS')NELre=timeLGC
D5mJD=SESS')NEL5mLGC
DIueryJFinsert into reservation=mast
>&rain=no/&rain=name/Arr=time/Reserve=date/*oa2h/Station=-ro
m/Station=&o/reserve=time/5m/3ourney=date/ &i25et=no@
values>LF.Dno.FL/LF.Dnm.FL/LF.Dtime.FL/LF.Ddate.FL/LF.D2oa2h.FL/LF.
Dsour2e.FL/LF.Ddest.FL/LF.Dre=time.FL/LF.D5m.FL/LF.D3dt.FL/LF.
Dti25etno.FL@FC
DresJmysIl=Iuery>DIuery@C
D2lassJD=SESS')NEL2oa2hLGC
DseatJD=SESS')NELseatLGC
DIueryJFinsert into transa2tion=mast
>train=no/3ourney=date/2lass/total=seat/reserved=seat/seat=no/reserve=tim
e/&i25et=no@
3D
3D
value>LF.Dno.FL/LF.D3dt.FL/LF.D2lass.FL/8:1/$/LF.Dseat.FL/LF.Dre=time.FL/LF.
Dti25etno.FL@FC
DresJmysIl=Iuery>DIuery@C
DIJFsele2t sum>reserved=seat@ 4rom transa2tion=mast where train=noJLF.
Dno.FL MM 3ourney=dateJLF.D3dt.FLFC
DresJmysIl=Iuery>DI@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as Dval@
H
DaJDvalC
O
O
DIueryJFudate transa2tion=mast
set unreserve=seatJ>total=seat!Da@
where train=noJLF.Dno.FLFC
DresJmysIl=Iuery>DIuery@C
header>F+o2ationN REP=&'*KE&.hF@C
O
O
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FAh$ ali6nJL2enterLPAuPPessen6er=DetailASuPA9rP
A4orm nameJL4$L methodJLostL a2tionJLT^LP
Ata9le ali6nJL2enterLP
AtrP
AtdP&i25et noAStdPAtdPAinut tyeLte?tL nameJLti25etnoL
ma?len6thJ;PAStdP
AStrP
AtrP
AtdPBoo6ie noAStdPAtdPAinut tyeJLte?tL nameJL9oo6ieLma?len6thJ"P
AStrP
AtrP
AtdPSeat noAStdPAtdPAinut tyeJLte?tL nameJLseatLma?len6thJ7PAStdP
AStrP
AtrP
Atd PNameAStdPAtdPAinut tyeJLte?tL nameJLnmL ma?len6thJ$8PAStdP
AStrP
AtrP
AtdPA6eAStdPAtdPAinut tyeJLte?tL nameJLa6eL ma?len6thJ"PAStdP
AStrP
AtrP
Atd P,enderAStdPAtdPAinut tyeJLte?tL nameJL6enderL
ma?len6thJ$PAStdP
3,
3,
AStrP
AtrP
Atd P*onte2t no AStdPAtdPAinut tyeJLte?tL nameJL2onte2tL
ma?len6thJ$#PAStdP
AStrP
AtrP
AtdP(ourney=dateAStdPAtdPAinut tyeJLte?tL nameJL3=dateL
valueJLyear!dd!mmL on4o2usJL2ls>4$@LPAStdP
AStrP
AtrP AtdPAinut tyeJLsu9mitL nameJLreservationL valueJLreserveL
on2li25JLreturn 2he25>4$@LPAStdP
AS4ormP
AtdPA4orm nameJL4"L methodJLostL a2tionJLreservation.hLP
Ainut tyeJLsu9mitL nameJLnoreservationL valueJLunreserveLPAStdP
AStrP
AS4ormPASta9lePFC
e2ho D4ooterC
BP
As2rit lan6ua6eJF3avas2ritFP
4un2tion 2he25>?@
H
i4>?.ti25etno.valueJJLL ]] ?.9oo6ie.valueJJLL ]] ?.seat.valueJJLL ]]
?.nm.valueJJLL ]] ?.a6e.valueJJLL ]] ?.6ender.valueJJLL ]] ?. 2onte2t.valueJJLL ]]
_.3ourney=date.valueJJLL@
H
alert>FP+EASE A&&EMP& A++ 'N-)RMA&')NF@C
return 4alseC
?.nrno.4o2us>@C
O
O
4un2tion 2ls>?@
H
?.3=date.valueJFFC
O
ASs2ritP
1+
1+
&he 4ollowin6 s2reen will 9e dislay/ when user miss enter any in4ormation in
dislayed assen6er=4orm
-rom [assen6er=detail.h\.
11
11
&he 4ollowin6 s2reen will 9e dislay >ti25et reort@/ when user 4ill u all
in4ormation and 2li25 on reserve 9utton 4rom [assen6er=detail.h\.
>Re=ti25et.h@
ABh
session=start>@C
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
Dti25etnoJD=SESS')NELti25etnoLGC
DnoJD=SESS')NELtrainnoLGC
D5mJD=SESS')NEL5mLGC
Dre=dtJD=SESS')NELdateLGC
D3=dateJD=SESS')NEL3=dateLGC
D2lassJD=SESS')NEL2oa2hLGC
Da6eJD=SESS')NELa6eLGC
12
12
D4romJD=SESS')NEL4romLGC
DtoJD=SESS')NELtoLGC
e2ho FAh$ ali6nJL2enterLPAuPA4ont 2olorJLma6entaLPHAPPY ()%RNEYASuP
Ata9le 9orderJ#P
AtrPAtdP&i25et noN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.
Dti25etno.FLPAStdP
AStrP
AtrP
AtdP&rain=noN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.Dno.FLPAStdP
AStrP
AtrP
AtdP*lassN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.D2lass.FLPAStdP
AStrP
AtrP
AtdPKMN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.D5m.FLPAStdP
AStrP
AtrP
AtdPReserve=DateN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.
Dre=dt.FLPAStdP
AStrP
AtrP
AtdP(ourney=DateN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.
D3=date.FLPAStdP
AStrP
AtrP
AtdPSour2eN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.D4rom.FLPAStdP
AStrP
AtrP
AtdPDestinstionN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.Dto.FLPAStdP
AStrP
AtrP
AtdPReservation -eesN!AStdPAtdPAinut tyeJLte?tL disa9led valueJ8#PAStdP
AStrP
ASta9lePAS4ontPASh$PFC
DIJFsele2t 9oo6ie=no/seat=no/name/a6e/6ender 4rom essen6er=detail where
&i25et=noJLF.Dti25etno.FLFC
DresJmysIl=Iuery>DI@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
rint>FAtr 962olorJLin5LPF@C
13
13
4orea2h>Drow as Dval@
H
rint>FAtdPDvalAStdPF@C
O
rint>FAStrPF@C
O
rint>FASta9lePF@C
DIJFsele2t distin2t 2har6e=er=5m 4rom 2oa2h=detail where 2oa2h=nameJLF.
D2lass.FLFC
DresJmysIl=Iuery>DI@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as Dval@
H
DaJDvalC
O
O
D4airJD5mKDaC
D4airJD4airR8#C
i4>Da6ePJ1#@
H
D4airJD4airK#.8#C
O
D=SESS')NEL4airLGJD4airC
session=re6ister>L4airL@C
e2ho FA4orm nameJL4$L methodJLostL a2tionJLreservation.hLP
Ata9le 9orderJ# ali6nJL2enterLP
AtrPAtdP-airN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.D4air.FLPAStdP
AtrPAtdPAinut tyeJLsu9mitL valueJLBA*KLPAStdP
AStrPASta9lePAS4ormPFC
BP
A9ody 962olorJFT--**--F te?tJFT<<##--FPAS9odyP
11
11
&he 4ollowin6 s2reen will 9e dislay 4or 2an2ellation reserved ti25et/when user
2li25 on 2an2ellation.h.
>*an2ellation.h@
ABh
session=start>@C
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
in2lude>Fheader.hF@C
in2lude>Fmenu.hF@C
in2lude>F4ooter.hF@C
e2ho DheaderC
e2ho DmenuC
e2ho FAla9elPAh$ ali6nJL2enterLPAuP*an2ellationASla9elPASuPASh$PASla9elPFC
e2ho FA4orm nameJL2an2elL methodJLostL a2tionJLTLP
Ah$ ali6nJL2enterLPEnter &i25et=no.N! Ainut tyeJLte?tL nameJLti25etnoL
ma?len6thJ;PA9rP
Ainut tyeJLsu9mitL nameJLdeleteL valueJL2an2elLP
AS4ormPASh$PFC
i4>isset>D=P)S&ELdeleteLG@@
H
Dti25etnoJD=P)S&ELti25etnoLGC
DIJFsele2t train=no/reserve=date/3ourney=date/station=4rom/station=to 4rom
reservation=mast where &i25et=noJLF.Dti25etno.FLFC
1)
1)
DresJmysIl=Iuery>DI@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Drow as Dval@
H
rint>FAtdPDvalAStdPF@C
O
rint>FAStrPF@C
O
rint>FASta9lePF@C
DIJFsele2t &i25et=no/9oo6ie=no/seat=no/name/a6e 4rom essen6er=detail where
&i25et=noJLF.Dti25etno.FLFC
DresJmysIl=Iuery>DI@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Drow as Dval@
H
rint>FAtdPDvalAStdPF@C
O
rint>FAStrPF@C
O
rint>FASta9lePF@C
DIJFdelete 4rom reservation=mast where &i25et=noJLF.Dti25etno.FLFC
DresJmysIl=Iuery>DI@C
DIJFdelete 4rom essen6er=detail where &i25et=noJLF.Dti25etno.FLFC
DresJmysIl=Iuery>DI@C
DIJFdelete 4rom transa2tion=mast where &i25et=noJLF.Dti25etno.FLFC
14
14
DresJmysIl=Iuery>DI@C
DtrainnoJD=SESS')NELtrainnoLGC
Dti25etnoJD=SESS')NELti25etnoLGC
D2an2el=dateJD=SESS')NELdateLGC
D3dtJD=SESS')NEL3=dateLGC
D4airJD=SESS')NEL4airLGC
DIJFinsert into
2an2ellation>train=no/ti25et=no/2an2ellation=date/3ourney=date/4air@values>LF.
Dtrainno.FL/LF.Dti25etno.FL/LF.D2an2el=date.FL/LF.D3dt.FL/LF.D4air.FL@FC
DresJmysIl=Iuery>DI@C
e2ho DresC
O
e2ho FAh$ ali6nJL2enterLPAa hre4JLre=2an2ellin6.hLPsee 2an2ellin6
reortASaPASh$PFC
e2ho D4ooterC
BP
1<
1<
'4 user 2li25 on\see 2an2ellin6 reort\ lin5/&he 4ollowin6 s2reen will 9e dislay.
>Re=2an2ellin6.h@
ABh
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
D2urr=dateJdate>LY!n!3L@C
e2ho FA9rPAh$ ali6nJL2enterLPAuPA4ont 2olorJLma6entaLP*an2ellin6!
ReortAS4ontPASuPASh$PFC
DIJFsele2t distin2t K 4rom 2an2ellation where 2an2ellation=dateJLF.
D2urr=date.FLFC
DresJmysIl=Iuery>DI@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Drow as Dval@
H
1D
1D
rint>FAtdPDvalAStdPF@C
O
rint>FAStrPF@C
O
rint>FASta9lePF@C
e2ho FAh$ ali6nJL2enterLPA4orm nameJL4$L methodJLostL
a2tionJL2an2ellation.hLP
A9rPAinut tyeJLsu9mitL valueJLBA*KLPAS4ormPASh$PFC
BP
A9ody 962olorJFT--**--FPAS9odyP
1,
1,
&he 4ollowin6 s2reen will 9e dislay/ when user 2li25 on lo6out menu
>+o6out.h@
ABh
session=start>@C
session=unre6ister>FunameF@C
session=destroy>@C
e2ho FAh$ ali6nJL2enterLP+),)%& S%*ESS-%++YABRPABRP&HANS -)R
V'S'&A9rPA9rPA9rPA9rPA9rP
Aa hre4JLinde?.hLPA9P,) &) +),'N PA,EAS9PASaPASh$PFC
BP
A9ody 962olorJFT--<<--F te?tJFT<<00--FPAS9odyP
)+
)+

>&'*KE& REP)R&@
>Re=ti25et.h@
ABh
session=start>@C
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
Dti25etnoJD=SESS')NELti25etnoLGC
DnoJD=SESS')NELtrainnoLGC
D5mJD=SESS')NEL5mLGC
Dre=dtJD=SESS')NELdateLGC
D3=dateJD=SESS')NEL3=dateLGC
D2lassJD=SESS')NEL2oa2hLGC
Da6eJD=SESS')NELa6eLGC
D4romJD=SESS')NEL4romLGC
DtoJD=SESS')NELtoLGC
e2ho FAh$ ali6nJL2enterLPAuPA4ont 2olorJLma6entaLPHAPPY ()%RNEYASuP
Ata9le 9orderJ#P
AtrPAtdP&i25et noN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.
Dti25etno.FLPAStdP
)1
)1
AStrP
AtrP
AtdP&rain=noN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.Dno.FLPAStdP
AStrP
AtrP
AtdP*lassN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.D2lass.FLPAStdP
AStrP
AtrP
AtdPKMN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.D5m.FLPAStdP
AStrP
AtrP
AtdPReserve=DateN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.
Dre=dt.FLPAStdP
AStrP
AtrP
AtdP(ourney=DateN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.
D3=date.FLPAStdP
AStrP
AtrP
AtdPSour2eN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.D4rom.FLPAStdP
AStrP
AtrP
AtdPDestinstionN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.Dto.FLPAStdP
AStrP
AtrP
AtdPReservation -eesN!AStdPAtdPAinut tyeJLte?tL disa9led valueJ8#PAStdP
AStrP
ASta9lePAS4ontPASh$PFC
DIJFsele2t 9oo6ie=no/seat=no/name/a6e/6ender 4rom essen6er=detail where
&i25et=noJLF.Dti25etno.FLFC
DresJmysIl=Iuery>DI@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Drow as Dval@
H
rint>FAtdPDvalAStdPF@C
O
rint>FAStrPF@C
)2
)2
O
rint>FASta9lePF@C
DIJFsele2t distin2t 2har6e=er=5m 4rom 2oa2h=detail where 2oa2h=nameJLF.
D2lass.FLFC
DresJmysIl=Iuery>DI@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
H
4orea2h>Drow as Dval@
H
DaJDvalC
O
O
D4airJD5mKDaC
D4airJD4airR8#C
i4>Da6ePJ1#@
H
D4airJD4airK#.8#C
O
D=SESS')NEL4airLGJD4airC
session=re6ister>L4airL@C
e2ho FA4orm nameJL4$L methodJLostL a2tionJLreservation.hLP
Ata9le 9orderJ# ali6nJL2enterLP
AtrPAtdP-airN!AStdPAtdPAinut tyeJLte?tL disa9led valueJLF.D4air.FLPAStdP
AtrPAtdPAinut tyeJLsu9mitL valueJLBA*KLPAStdP
AStrPASta9lePAS4ormPFC
BP
A9ody 962olorJFT--**--F te?tJFT<<##--FPAS9odyP
)3
)3
>*AN*E++'N, REP)R&@
>Re=2an2ellin6.h@
ABh
in2lude>Fmy2on.hF@C
mysIl=sele2t=d9>Fd9railwayF@C
D2urr=dateJdate>LY!n!3L@C
e2ho FA9rPAh$ ali6nJL2enterLPAuPA4ont 2olorJLma6entaLP*an2ellin6!
ReortAS4ontPASuPASh$PFC
DIJFsele2t distin2t K 4rom 2an2ellation where 2an2ellation=dateJLF.
D2urr=date.FLFC
DresJmysIl=Iuery>DI@C
rint>FAta9le 9orderJL#L ali6nJL2enterLPF@C
D?J#C
rint>FAtr 962olorJL2yanLPF@C
while>D?AmysIl=num=4ields>Dres@@
H
rint4>FAthPXsASthPF/mysIl=4ield=name>Dres/D?@@C
D?RRC
O
rint>FAStrPF@C
while>DrowJmysIl=4et2h=array>Dres/MYSW+=ASS)*@@
)1
)1
H
rint>FAtr 962olorJLin5LPF@C
4orea2h>Drow as Dval@
H
rint>FAtdPDvalAStdPF@C
O
rint>FAStrPF@C
O
rint>FASta9lePF@C
e2ho FAh$ ali6nJL2enterLPA4orm nameJL4$L methodJLostL
a2tionJL2an2ellation.hLP
A9rPAinut tyeJLsu9mitL valueJLBA*KLPAS4ormPASh$PFC
BP
A9ody 962olorJFT--**--FPAS9odyP
))
))

*urrently the YRailway Non Reserved &i25et Boo5in6Z is doin6 its wor5
on manual 9asi2. &his entire 9oo5 to maintain sto25 M 5ee re2ord o4 ea2h meter
rearin6 or di so it well 9e time 2onsumin6. &hey maintain various resisters to
store the in4ormation.

At resent the deartment o4 Railway Reservation sta44>3una6adh@
maintain resisters 4or the urose o4 mana6in6 the 4irm/ whi2h are as 9elow.
'ndent 4or assen6er 2ard ti25ets
&i25et sto25 9oo5>station wise M 2lass wise@
Daily train 2ash!2um!summary 9oo5
As er tye o4 train
Detail o4 non!issued ti25et
Detail o4 ti25et issued at 2on4essional rates.


)4
)4
Eoo#$ /e%ered
Ee'innin' P.P) by >or#
.T37, D.T37 F *a&aScrit by INAN EA@/6SS
P.P EIE70
.EBS'&ES
www.google.com
www.php.net
www.planetsource.com

)<
)<