当前位置:Gxlcms > 数据库问题 > 用php代码统计数据库中符合条件的行数

用php代码统计数据库中符合条件的行数

时间:2021-07-01 10:21:17 帮助过:2人阅读

  1. $sql1 = "select count(*) from t_user where age<17";
  2. $data1 = mysql_query($sql1);
  3. $rows1=mysql_fetch_array($data1);
  4. $rowCount1 = $rows1[0];

  

用php代码统计数据库中符合条件的行数

标签:

人气教程排行