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

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

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

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

  

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

标签:

人气教程排行