求大神指教,如教程循环
<?php global $dbh; require_once('../connect.php'); $querysql="SELECT*FROM article order by dateline desc"; $stmt=$dbh->prepare($querysql); $res=$stmt->execute(); $row=$stmt->fetch(PDO::FETCH_ASSOC); var_dump($row); $MAX=100; if($res) { { while($row){ print_r($row); } } } else{ echo"no"; } ?> 在我的网页上是死循环为啥