Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $currentId = -1;
- foreach ($results as $row) {
- if ($row['id'] != $currentId) {
- $currentId = $row['id'];
- // start a new page
- }
- // draw this row on the current page
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement