Last active
June 24, 2020 04:55
-
-
Save parzibyte/42e8b13bc4edd236d8d1876c9ff1fa60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# El límite es el número de productos por página | |
$limit = $productosPorPagina; | |
# El offset es saltar X productos que viene dado por multiplicar la página - 1 * los productos por página | |
$offset = ($pagina - 1) * $productosPorPagina; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment