PHP and mysql pagination, next/prev links -


edit

to clarify dont need know how pagination, guess im trying figure out how display next/previous link if rows returned. if want display 20 rows per page limit 21. know there row diplay, show next link. yet still display 20 rows on current page , still start off @ 20th row in next page. current issue if had 0-19 on first page, next page show 21-40, missing 20. guess need minus 1 on top of offset correct starting point.

you want this:

 $lowerlimit = ($pagenumber - 1) * $resultsperpage;  $sql = "select * tbl1 limit $lowerlimit, $resultsperpage"; 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -