mysql (Basic opening page operation using database)
Hi everybody lots of thanks for your previous helps,
my question is about how to build a check "username/password". I cant figure out it.
String username = t1.getText();
String passwords = t2.getText();
Statement st;
Statement st2 = null;
try {
st = openConnection();
res = st.executeQuery("SELECT * FROM giris WHERE=" + username);
res2 = st2.executeQuery("SELECT * FROM giris WHERE=" + password);
} catch (Exception ex) {
JOptionPane.showConfirmDialog(null, "Bağlantı Başarısız", "MySQL Bağlantısı", JOptionPane.PLAIN_MESSAGE);
}
I want to build a classic username/password page. if username and password are true, then pass to rest part of the program.
Thanks in advance to everybody.