pagination website code example Example: pagination // input $page, $limit // output $offset = (($page - 1) * $limit); $limit = $limit;