My sql db has many rows. I use a php while loop to echo out the database on a page, into a html list
<ul>
<?php
while ($data = mysqli_fetch_assoc($result)):
$address = $data['address'];
$ad_link = $data['ad_link'];
if(is_null($ad_link)){$ad_link = "#";}
?>
<li><?php echo $address; ?></li>
<?php endwhile; mysqli_close($con); ?>
</ul>
I would like the list to run into an adjacent column after a certain number of lines have been spit out (rather than just run a mile down the page).
Then going into a third and forth column.
How does one even begin to do this? Doing it in a table would be preferable.
@lance solution below!
