步骤分为3步: (1)mysqli_query:获取结果集 (2)mysqli_num_rows:获取行数 (3)mysqli_fetch_assoc:获取每条数据 转载于:https://www.cnblogs.com/wen-0503/p/5154909.html