So I can't get this to work.
I have the variable $page
which contains the current page, $total_pages
which contain the total amount of pages and $limit
which contains the max number of rows per page.
I have tried doing a lot of stuff but I just don't get it.
This is the latest thing I tried. It works for page 1 & 2 but then it just stops working
if ($page == 1) {
$count = 1;
} else {
$count = $page * $limit/2 + 1;
}
That code was above my while-loop which loops out the rows.