单项选择题
假设用户在登录时,输入的用户名信息保存在变量$uname中,密码保存在变量$psd中,查询数据表user 中是否存在该用户名和密码信息,需要定义的查询语句是()
A.select *from user where uname=’$uname’or psd=’$psd’
B.select *from user where uname=’$uname ’and psd=’$psd’
C.select *from user where uname=$uname and psd=$psd
D.select *from user where uname=$uname or psd=$psd’
点击查看答案&解析
相关考题
-
单项选择题
用于为画布分配颜色的函数是()
A.imagefill()
B.imagecreate()
C.imagecolorallocate()
D.imagecolor() -
单项选择题
下面关于Apache主目录说法错误的是()
A.安装Apache之后,必须要将页面文件放在其主目录下才能正常运行
B.安装Apache之后,系统会给其指定默认的主目录
C.Apache的主目录不能随意修改
D.用户可以根据需要修改Apache主目录 -
单项选择题
PHP中用来填充画布颜色的函数名称及需要的参数个数分别是()
A.imageline();4
B.imageline();6
C.imagefill();4
D.imagefill();6