I have been trying to echo out database data through a while loop now for awhile but it doesn't work, I can't find where the issue is. I have tried echoing out data manually and that works just fine.
<?php $results = mysqli_query($con,"SELECT * FROM guestbook ORDER BY id DESC"); ?>
<?php while ($row = mysqli_fetch_assoc($results)) : ?>
<li>
<?php echo $row['message']; ?>
</li>
<?php endwhile ?>
"; inside the while loop... Does that appear? Put it after the echo $row. Put another echo something after it... Does that show? This is Just to test that the code is running... – TimBrownlaw Mar 02 '18 at 08:44