You are on page 1of 3

DELHI PUBLIC SCHOOL

PATNA

A PROJECT REPORT
ON
RAILWAY MANAGEMENT SYSTEM
FOR
AISSCE 2019 EXAMINATION
[AS A PART OF THE INFORMATICS PRACTICES
COURSE]

Name - ADARSH MOHAN


Board Roll Number-

Class- XII/A
JOptionPane.showMessageDialog(null, "One or more values are missing, please provide all details to
continue.");

else if(pnrStatus.equals("CNF") && (coach.trim().equals("")||seat.trim().equals("")))

JOptionPane.showMessageDialog(null, "One or more values are missing, please provide all details to
continue.");

else

Class.forName("java.sql.Driver");

Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/rms","dps","root");

Statement smt = con.createStatement();

String query = "update rms_booking set fromlocation = '"+ src +"',tolocation = '"+ dest
+"',traveldate = '"+ trvlDate +"',traveltime = '"+ trvlTime +"',coach = '"+ coach +"',seat = '"+ seat
+"',pnrstatus = '"+ pnrStatus +"' where pnr='"+pnr+"';";

if (smt.executeUpdate(query)!=0){

JOptionPane.showMessageDialog(null, "Your booking has been updated successfully.");

UBCoachField.setText("");

UBSeatField.setText("");

UBToField.setText("");

UBTrvlDtField.setText("");

UBTrvlTmFIeld.setText("");

UBPNRLabel.setText("");

UBFromField.setText("");

UBPNRStatField.setSelectedIndex(0);

LIABRefreshTableBtnActionPerformed(evt);

smt.close();

con.close();

}
CERTIFICATE
This is to certify that the Project / Dissertation entitled

RAILWAY Management System is a bonafide work done

by Master ADARSH MOHAN of class XII-A Session

2018-19 in partial fulfillment of CBSE’s AISSCE

Examination 2019 and has been carried out under my

direct supervision and guidance. This report or a similar

report on the topic has not been submitted for any other

examination and does not form a part of any other course

undergone by the candidate.

……….………………

Signature of Teacher

……….……………… ……….………………

Signature of Principal Signature of Examiner

You might also like