???
query1.sql.text := 'select username, password from pswddb where username=:username_what_u_entered and password = assword_what_u_entered';
query1.parambyname('username_what_u_entered').asstring := edit1.text;
query1.parambyname('password_what_u_entered').asstring := edit2.text;
query1.open;
if query1.empty then
如果在本地使用,还是用一下table吧!
if not tblpasswd.locate('username;passwd',
VarArrayOf([edtusername.text,
edtpasswd.text]
),
[]) then
begin
//非法用户
end
else
begin
//合法
end;