Portal Home > Knowledgebase > Articles Database > hot to number the pages in the result..?


hot to number the pages in the result..?




Posted by argenty, 08-18-2007, 07:26 AM
Hello, I can can print "previous - next" but i need it to be like "previous 1 2 3 4 5 6 7 next" here is the code how i print the previous and next. It's just an exemple...hope you can help me..the easy way to number the result. Thank you

Posted by RSMN, 08-18-2007, 02:01 PM
Just do a mysql_num_rows() on the result, and divide the result by your page size (15), and then loop it into existance. i.e. Result returns 150 rows.

Posted by hq12, 08-19-2007, 01:16 AM
i was looking for this too. very good posting.

Posted by argenty, 08-26-2007, 06:44 AM
hello, anybody could work with this..? it did not work with me, any body can help (explain) ?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Recommended Prices ? (Views: 705)


Language: