/*
* created on 2004-12-16
*
* todo to change the template for this generated file go to
* window - preferences - java - code style - code templates
*/
package util;
import java.sql.resultset;
import java.sql.sqlexception;
/**
* @author zhang
* mysql的子类,专门验证登录
* 验证用户合法与否
*/
public class passsql extends mysql{
public boolean isvalidate(string sql,string username,string password) throws sqlexception{
init(sql);
this.setstring(1,username);
this.setstring(2,password);
resultset rs = this.executequery();
if (rs.next()) {
return true;
}
return false;
}
}
闽公网安备 35060202000074号