string strCmd= "select count(*) from user where (username like '"+textBox1.Text+"' and password='"+textBox2.Text +"')";
竟然用like?真的用户名: abcdef 1234
其实用:ab 1234 也可以登录
竟然用like?真的用户名: abcdef 1234
其实用:ab 1234 也可以登录
小弟看不出来什么问题
myConnection.Close();这两个写一个就可以了
这个地方有问题吗?