i need another simple question to you
how can i do a query with like and other parameters like this
Code: Select all
select * from users where name like ? and/or position = ?
Code: Select all
select * from users where name like ? and/or position = ?
Code: Select all
obj = dbmanager.executeQuery("SELECT * FROM Users WHERE email=?", new Object[] {email});
Bax wrote:The code seems ok. Maybe you should print the error message returned by the SQLException, to understand what is going on.