Welcome to the Treehouse Community
Looking to learn something new?
Logan R22,989 Points
Easier for products
Wouldn't it be easier to just do $end first, then for $start do:
$start = ($end - $products_per_page) + 1;
(as oppose to)
$start = (($current_page - 1) * $products_per_page) + 1;
Edit: I watched for 10 more seconds and I agree with his reasoning lol. If the end page only has 4 products, when there is normally 8, then it doesn't really work.
They really need to add a delete button >.>