Skip to content

Commit

Permalink
Update userLogin.java
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaEssien committed Dec 28, 2021
1 parent 99a19e8 commit 29798cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Flight Reservation System/src/com/company/userLogin.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void actionPerformed(ActionEvent e) {

//Connecting to the database
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 username, password FROM testLogin WHERE username=? and password=?");
Expand Down Expand Up @@ -91,4 +92,4 @@ public static void main(String[] a) {
frame.setVisible(true);

}
}
}

0 comments on commit 29798cf

Please sign in to comment.