Hi all,
I just want to create a script that can echo "next" and "previous" or both based on total number of content.
I have parameter in url like :
mysite.com/start=8 (page 1)
mysite.com/start=16 (page 2)
mysite.com/start=24 (page 3) and so on.....
what i want is fetch total number of content from database and print "next" and previous, for example :
If start=8 or start='' then echo next but only if contents are more then 8, If start=16 then echo "next" and "previous", AND If start=24 then echo only "previous".
If possible, Please help me with example code...
Your help will be very thankful...