初学者登陆框的问题
<P> 做了个登陆框</P><P>确定按钮代码如下</P>
<P>open(w_main)<BR>string user_name,user_pwd<BR>int usercount<BR>user_name=sle_name.text;<BR>user_pwd=sle_pwd.text;<BR>select count(name) into:usercount<BR>from login where name=:user_name and pwd=:user_pwd;<BR>if usercount=0 then <BR> messagebox("","用户名错误");<BR> sle_name.text="";<BR> sle_pwd.text="";<BR> sle_name.setfocus();<BR>else<BR> close(parent)<BR>end if </P>
<P>运行出现</P>
<P>database c0038 sqlstate=......syntax error near 'login' in.....(name) from where name=''.......</P>
<P>是怎么回事啊</P> 语法错误。另外这种认证方式是有安全问题的。
页:
[1]