假设用户在登录时,输入的用户名信息保存在变量$emailaddr中,密码保存在变量$psd中,查询数据表usermsg中是否存在该用户名和密码信息,需要定义的查询语句是 A: select * from usermsg where emailaddr='$emailaddr' or psd='$psd' B: select * from usermsg where emailaddr='$emailaddr' and psd='$psd' C: select * from usermsg where emailaddr=$emailaddr and psd=$psd D: select * from usermsg where emailaddr=$emailaddr or psd=$psd'
假设用户在登录时,输入的用户名信息保存在变量$emailaddr中,密码保存在变量$psd中,查询数据表usermsg中是否存在该用户名和密码信息,需要定义的查询语句是 A: select * from usermsg where emailaddr='$emailaddr' or psd='$psd' B: select * from usermsg where emailaddr='$emailaddr' and psd='$psd' C: select * from usermsg where emailaddr=$emailaddr and psd=$psd D: select * from usermsg where emailaddr=$emailaddr or psd=$psd'
1