Afficher un message
Vieux 15/09/2007, 16h24   #2
Greg Donald
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] split in to multiple pages (I think)

On Sat, 15 Sep 2007, Joker7 wrote:
> I'm using the code below to display news articles-which works great apart
> from. I can control the number of articles,but I would like to add a link to
> the bottom of the page to the un-displayed articles ( nexted 5 articles and
> so on) any pointers would be most welcome as most know my PHP skills are not
> the best .


There's a bunch of how-tos and discussion on this topic already:

http://google.com/search?q=php+pagination

You have to manage a variable across page requests to keep track of
where you are. Use that variable in your SQL as part of your
offset/limit parameters.


--
Greg Donald
Cyberfusion Consulting
http://cyberfusionconsulting.com/
  Réponse avec citation
 
Page generated in 0,04388 seconds with 9 queries