Created
June 24, 2020 04:59
-
-
Save parzibyte/7c702996da2170ccace5bc0ffaa42d3a 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 | |
# Ahora obtenemos los productos usando ya el OFFSET y el LIMIT | |
$sentencia = $base_de_datos->prepare("SELECT * FROM productos LIMIT ? OFFSET ?"); | |
$sentencia->execute([$limit, $offset]); | |
$productos = $sentencia->fetchAll(PDO::FETCH_OBJ); | |
# Y más abajo los dibujamos... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment