$query1="select b.wareid from u_ware_class a,u_store_m b where a.classcode ='01190202' and a.wareid=b.wareid and b.busno=1001 and b.sumqty>0";
$stmt1 = $PDO-> query ( $query1 );
while ($row = $stmt1->fetch(PDO::FETCH_ASSOC))
{
extract($row);
echo "{$wareid}
";
}
现在输出的是一条一条的。想要输出总共多少条。做个统计