1.mysqli_query() 函数执行某个针对数据库的查询。
用法:mysqli_query(connection,query,resultmode);
connection 必需。规定要使用的 MySQL 连接。
query 必需,规定查询字符串。
2.mysqli_num_rows() 函数返回结果集中行的数量。
用法:mysqli_num_rows(result);
result 必需。规定由 mysqli_query()、mysqli_store_result() 或 mysqli_use_result() 返回的结果集标识符。