V
vivian
Unregistered / Unconfirmed
GUEST, unregistred user!
我的一个登陆页面,验证密码的程序如下:
datamodule1.ADOCommand1.CommandText:='select * from users where name='+nameedit.Text+'and password='+pwdedit.text;;
datamodule1.ADOCommand1.Execute;
if not datamodule1.ADOCommand1.Execute.EOF then
order.ShowModal
else
loginwrong.ShowModal;
end;
怎么出现了错误,说invalid column 'wang,nameedit.text是wang.'
哪位大虾知道为什么吗?
非常感谢
datamodule1.ADOCommand1.CommandText:='select * from users where name='+nameedit.Text+'and password='+pwdedit.text;;
datamodule1.ADOCommand1.Execute;
if not datamodule1.ADOCommand1.Execute.EOF then
order.ShowModal
else
loginwrong.ShowModal;
end;
怎么出现了错误,说invalid column 'wang,nameedit.text是wang.'
哪位大虾知道为什么吗?
非常感谢