How to display 4 rows from mysql database and then use a next button to show the next 4 in PHP -
How to display 4 rows from mysql database and then use a next button to show the next 4 in PHP -
how result in php
php display page 1 1 kirk 12 2 jj 45 3 smith 16 4 kk 50 php display page 2 1 tt 12 2 kim 45 3 monique 16 4 pp 50i getting first 4 when click next button bring first 4 again. want next button bring next 4 , not first 4
limit [offset], [row_count]
so, limit 0,4
on first page, limit 4,4
on sec page, limit 8,4
on next, etc.
for more info, see: http://dev.mysql.com/doc/refman/5.0/en/select.html
dev.mysql.com resource on syntax , general how-to.
php mysql html sql
Comments
Post a Comment