Skip to content

Commit

Permalink
Update userDetails.java
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaEssien committed Dec 28, 2021
1 parent 0e2c77e commit 99a19e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Flight Reservation System/src/com/company/userDetails.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public void actionPerformed(ActionEvent evt) {
if (valid) {
if (source == submit) { //checking the database if the flight details entered are available
try {
//where login = your database name, root = your username and "" = your password
Connection connection = (Connection) DriverManager.getConnection("jdbc:mysql:https://localhost:3306/login",
"root", "");
PreparedStatement statement = (PreparedStatement) connection.prepareStatement("SELECT `airline`, `current_city`, `destination`, `flight_class`, `flight_type`, `travel_date`, `number_of_seats` FROM `flight_info` WHERE airline=? and current_city=? and destination=? and flight_class=? and flight_type=? and travel_date=? and number_of_seats=?");
Expand Down

0 comments on commit 99a19e8

Please sign in to comment.