Jump to content

multiple page news


Xpsych0

Recommended Posts

Hello guys,

 

First off I would like to say that I am new here and new to PHP programming however I have a PHP book in front of me and reading it as I go along. Here is what I am trying to do and I know how to do most but there are still some things that I am unfamiliar with.

 

in my news.php page for my animal rescue website, I have over 40 news posts, they are pulled from the MySQL database and sorted out one after another and it works great but not what I want. I want to limit the news posts to 10 per page.

 

My question is how can I accomplish this? I am assuming that I would need to do a limit on the SQL query to 10? but if I do that, I can't continue after that on a different page can I and how would I go about doing this?

 

I have thought about looking at the codes to wordpress or another news software but most are more complicated than I need. I just need something simple.

 

 

Any help would be greatly appreciated.

 

Kris

 

Link to comment
https://forums.phpfreaks.com/topic/180476-multiple-page-news/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.