结果一直显示一行,任何想法?其他问题的所有答案似乎都没有帮助..
<?php
$stmt = $DB_con->prepare('SELECT * FROM members ORDER BY user_id ASC');
$stmt->execute();
$row = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach($row as $row_user) {
?>
<div id="tab-2" class="tab-content">
<div class="flex-direction-column animated fadeInUp">
<div class="notification">
<div class="row">
<span>pic</span>
</div>
<div class="row">
<span>name</span>
</div>
<div class="row">
<span>nim</span>
</div>
<div class="row">
<span>occupation</span>
</div>
<div class="row">
<span>description</span>
</div>
</div>
<div class="notification">
<div class="row-inner">
<span><?php echo $row_user['user_pic']; ?></span>
</div>
<div class="row-inner">
<span><?php echo $row_user['user_fullname']; ?></span>
</div>
<div class="row-inner">
<span><?php echo $row_user['user_nim']; ?></span>
</div>
<div class="row-inner">
<span><?php echo $row_user['user_occupation']; ?></span>
</div>
<div class="row-inner">
<span><?php echo $row_user['user_desc']; ?></span>
</div>
</div>
</div>
</div>
<?php
}
?>