Update index.php

parent ec59b723
...@@ -218,11 +218,12 @@ $start = ($page - 1) * $per_hal; ...@@ -218,11 +218,12 @@ $start = ($page - 1) * $per_hal;
$query = "SELECT * FROM Komentar"; $query = "SELECT * FROM Komentar";
$result_set = $conn->query($query); $result_set = $conn->query($query);
while ($row = $result_set->fetch_assoc()) { while ($row = $result_set->fetch_assoc()) {
echo '<div class="alert alert-success" role="alert"> <strong><?= '.$row['name'].' ?></strong> ?>
<p>'.$row['komentar'].'</p></div>'; <div class="alert alert-success" role="alert"> <strong><?= $row['name'] ?></strong>
<p> <?= $row['komentar'] ?></p></div>
<?php} <?php }
?> ?>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment