diff --git a/albums_view.php b/albums_view.php index 170f4d1..f8aa375 100644 --- a/albums_view.php +++ b/albums_view.php @@ -57,7 +57,7 @@
diff --git a/artist_albums.php b/artist_albums.php index 1b5133b..9e92093 100644 --- a/artist_albums.php +++ b/artist_albums.php @@ -3,6 +3,21 @@ $uid = $_GET["uid"]; + // Check if we have an offset value passed for pagination + if (!empty($_GET["ofst"])) { + $offset = $_GET["ofst"]; + } else { + $offset = 0; + } + + //Set up some offset values for our next and prev buttons + if ($offset == 0) { + $poffset = 0; + } else { + $poffset = $offset - 25; + } + $noffset = $offset + 25; + $get_data = handshakeAPI(); $hshake = json_decode($get_data, true); @@ -21,9 +36,19 @@