lAZLf Posted March 4, 2010 Share Posted March 4, 2010 I use my website as my portfolio and I want to make "next" and "previous" buttons to go to the next image (whose source/path is stored in the database) and previous image. So, how could I get the next and previous rows from a database? Quote Link to comment https://forums.phpfreaks.com/topic/194119-get-next-and-previous-row/ Share on other sites More sharing options...
vineld Posted March 4, 2010 Share Posted March 4, 2010 If they're not too many you could store the information in a javascript array for example. If they're too many (then maybe your solutions isn't that good anyway) you could simply store the current database id and then just select the previous or next entry upon the user's action. Quote Link to comment https://forums.phpfreaks.com/topic/194119-get-next-and-previous-row/#findComment-1021353 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.