customizing a detail page.
i got an website for artworks.
where admin can upload the artworks and etc.
site link: http://www.shrishtiart.com/
artworks page: http://www.shrishtiart.com/artworks.php
Now from artworks.php if you choose an artwork then your taken to artwork-details.php?id=44 or so....
Now within that page (artwork-details.php) there is next & prev.
Here when i click next or prev it just takes to next artwork.
But in artworks.php page the order is: ORDER BY `position` ASC
so i wanna use same in artwork-details.php when someone clicks next it should show next artwork shown in artworks.php page.
Example: 4th artwork here is: id=356 "WHITE SCULPTURE ARTWORK" "Chippa Sudhakar" (http://www.shrishtiart.com/artworks.php)
So then when i m in http://www.shrishtiart.com/artwork-details.php?id=356 and when i click next i must be taken to : http://www.shrishtiart.com/artwork-details.php?id=64 but instead it takes me to: id=357 .
So how do i solve this?