Page 1 of 1
creating dynamic url's with next and previous page
Posted: Wed Mar 30, 2005 7:21 pm
by soianyc
Noob to php\mysql. So far ive been able to create a table, insert data using a form and read that data. What i would like to do is make the data appear 5 at a time on the page, with next and previous buttons for the other records. What course of action should i take for this???
Thanks
Posted: Wed Mar 30, 2005 7:34 pm
by John Cartwright
search "pagination" on these forums..
we also have a code snipplet available in the Code Snipplet forum
Posted: Thu Mar 31, 2005 8:06 am
by soianyc
Thanks, for that. Ive been searching around for some good tutorials on pagination, any in particular that you know of????
Posted: Thu Mar 31, 2005 9:49 am
by hairyjim
http://www.phpfreaks.com/tutorials/43/0.php
I went through that and picked up some stuff.
Posted: Thu Mar 31, 2005 10:38 am
by soianyc
Thanks for the link. I think i got the code to work, but a new question has arose. My data that i want paginated is not showing up??? does this have anything to do with the $php_self tag????
Posted: Thu Mar 31, 2005 11:27 am
by John Cartwright
try changing it to $_SERVER['PHP_SELF'] but I don't think that would be the cause.