strsql="select count(*) from userinfo where uname='"+name.text+"'";
strsql="select count(*) from userinfo where uname='"+name.text+"'";
strsql="select count(*) from userinfo where uname='"+name.text+"'";
字符串之间应该用"+"连接起来,在楼主的基础上改为:strsql="select count(*) from userinfo where uname="+"'"+name.text+"'"+";"简化一下即为:strsql="select count(*) from userinfo where uname='"+name.text+"'";
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货