0

Hello i got this code now for printing data from DB. It works it prints all in one page. Have a question how to make let's say 5 records per 1 page and then that it would autmatically would add next page as much as it needs to sort all records. Or anyone can give an idea as tried to look for info on ggl cant really find or don't know what i need to look for. Thank you!

<?php foreach ($ticket as $ticket): ?>
<div style="margin-right: 10px;">
    <div>
       <p> <?=htmlspecialchars($ticket['feedback'], ENT_QUOTES)?></p> 
    </div>
    <p><strong>Posted by Verified User on: <?=date('F dS', strtotime($ticket['created']))?></p><hr ></strong>
</div>
<?php endforeach ?>

0 Answers0