1st i will explain the background.
currently there is an arists page where all artist are viewed. then when viewing artist details all artwork of that artist is shown in artist details page.
Now on artist detail page when i click any artwork it take me to artwork-detail.php page.
Now here there are two buttons
1- next artwork
2- previous artwork.
next take next artwork ex if i was checking artwork of id=7 then clicking next id=8 so it changes as per button click next or prev.
Is this clear so far?