Refactored the code, addded google translator, and fixed some bugs

This commit is contained in:
Ziver Koc 2012-06-14 20:39:22 +00:00
parent 36cee77790
commit ed1505254d
20 changed files with 844 additions and 370 deletions

View file

@ -138,7 +138,7 @@ public class User extends DBBean{
public static boolean emailExists(String email, DBConnection db) throws SQLException{
PreparedStatement sql = db.getPreparedStatement(
"SELECT * FROM User WHERE email=? LIMIT 1");
"SELECT email FROM User WHERE email=? LIMIT 1");
sql.setString(1, email);
String tmp = DBConnection.exec(sql, new SimpleSQLHandler<String>());