• 2022-06-07
    假设已经通过MySQLi扩展建立与数了据库的连接,连接对象是$mysqli。现在请写出代码:执行查询语句"SELECT * FROM student",然后输出查询结果的行数。
    A: $result = $mysqli->query("SELECT * FROM student"); echo $mysqli->num_rows;
    B: $result = $mysqli->query("SELECT * FROM student"); echo $mysqli->$num_rows;
    C: $result = $mysqli->query("SELECT * FROM student"); echo $result->num_rows;
    D: $result = $mysqli->query("SELECT * FROM student"); echo $result->$num_rows;