- UID
- 386647
- 帖子
- 12775
- 精华
- 2
- 威望
- 7
- 阅读权限
- 100
- 性别
- 男
- 来自
- 仙灵洞天
- 注册时间
- 2006-10-25
|
53#
发表于 2007-6-28 17:26
| 只看该作者
把
UserName = mrc.Fields(0)
txtSQL = "select UID from userinfo where PWD='" & Trim(txtPassword.Text) & "'"
改成
UserName = mrc.Fields(0)
txtSQL = "select UID from userinfo where UID='" & UserName & "'"
txtSQL = txtSQL & " AND PWD='" & Trim(txtPassword.Text) & "'"
好象逻辑就对了 |
|