With postgreSQL: limit $nb_per_page offset $offset.
With MS SQL, you have to use « SELECT TOP $nb_per_page » but for the offset, it’s more complex, because you have to « calculate the offset and use a WHERE statement (something like: « WHERE ID >= $calculated_id)
So your query would end with this?
LIMIT $nb_per_page, $offset
For MySQL : LIMIT $nb_per_page, $offset
With postgreSQL: limit $nb_per_page offset $offset.
With MS SQL, you have to use « SELECT TOP $nb_per_page » but for the offset, it’s more complex, because you have to « calculate the offset and use a WHERE statement (something like: « WHERE ID >= $calculated_id)