以下能正常执行sql的代码是$con=mysqli_connect('localhost','root','123456','yzdata');$sql="select * from userinfo";
A. $result=mysqli_query($sql,$con);
B. $result=mysql_query($con,$sql);
C. $result=mysqli_query($con,$sql);
D. $result=mysqli_close($con,$sql);
查看答案
能关闭以下数据库连接的代码是$con=mysqli_connect('localhost','root','123456','yzdata');
A. mysql_close($con);
B. mysqli_close($con);
C. mysql_close();
D. mysqli_close();
$user=$_POST['username'];//账号$pwd=$_POST['password'];//密码数据库userinfo表中保存账号和密码字段分别是username和pasword,则查询账号和密码是否正确的sql语句是select * from ________ where __________ and _________;
php中页面自动跳转到login.php的代码是____________
PHP中统计查询结果记录数的函数是
A. mysqli_rows( )
B. mysqli_num_rows( )
C. mysqli_num_row( )
D. mysqli_num( )