我想在一个页面上显示600条记录,但在PHP中加载页面需要很长时间
while($row= $stmt1->fetch(PDO::FETCH_ASSOC)){
$rows[] = $row;
}
如何解决此加载问题?
foreach($rows as $row){
$qty="";
//print_r($row);
//echo "<br/>";
if(isset($row['mastr_id'])){
$id = $row['mastr_id'];
//$addsql.="id='".$vendorid."',";
}
if(isset($row['vendor_id']) && $row['vendor_id']!=""){
$vendorid = $row['vendor_id'];
$addsql.="vendor_id='".$vendorid."',";
}
$addsql=substr($addsql,0,-1);
}