Skip to content

Commit

Permalink
Update userRegistration.java
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaEssien committed Dec 28, 2021
1 parent 29798cf commit b608b59
Showing 1 changed file with 1 addition and 0 deletions.
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 testlogin = your table name, login = your database name, root = your username and "" = your password
String query = "INSERT INTO `testlogin`(`username`, `password`) VALUES (?, ?)";
Connection connection = (Connection) DriverManager.getConnection("jdbc:mysql:https://localhost:3306/login",
"root", "");
Expand Down

0 comments on commit b608b59

Please sign in to comment.