[求助]查询数据库问题?
public void dataopen(){
string dbolink1 = "provider=Microsoft.jet.OLEDB.4.0;data Source=" + Server.MapPath(databasepath) + ";";
mdbconn = new OleDbConnection(dbolink1);
mdbconn.Open();
}
obj.dataopen();
String sql = "SELECT * FROM admin where admin='" + username +"' and password='"+password+"'";
OleDbDataAdapter da = new OleDbDataAdapter(sql, obj.mdbconn);
下面如何写呀,找几个放在上面不行,请帮忙.(判断真假的)