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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.