Hi folks,
Can anyone help? I have a news section on my website which is all PHP/database driven. I currently have 3 news items in the database, with the following fields: headline, summary, story_body, large_image_url
What happens is when you go to the news page it displays the first item from the database and the pic that goes with it. There are then arrows at the top, one pointing to the right, one to the left in the form of 'Next Item' and 'Previous Item' with the words '1 of 3' in between them.
I need to make the buttons work and I have no idea how to do this. The button pointing to the right needs to go to item 2, then to item 3 (i.e. right button = view next story). I could also do with disabling the left button when you view item 1 as there won't be anything to go back to.
Can anyone help me with this or point me in the direction of some script that will do exactly that for me? I need this pretty urgently.
Many thanks.