Just wanted your help.
I have been stuck on a place.
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/index.php?start=8 (page 1)
mysite.com/index.php?start=16 (page 2)
mysite.com/index.php?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 total no of rows in database are : 32
Item showing per page : 8
getting value "start" from url using $_GET['start'].
If start=0 or start='empty' then echo "next" but only if contents are more then 8, If start=16 then echo "next" and "previous" both, AND If start=24 then echo "next" and "previous" and if start=32 then only echo "Previous".
If possible, Please help me with example code...
Your help will be very thankful...