Jump to content

php blog - mysql select problem


kozmk

Recommended Posts

hey guys,

 

I'm trying to script my own blog, but I have a problem.

On the homepage I got the script to show the last 5 post that have been made, but now I want to show "older" post so it I need a page that skips the first 5 post and shows the next 5 post. How can I get this info out of mysql ?

 

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/103988-php-blog-mysql-select-problem/
Share on other sites

on my home page "index.php" i show my latest 5 posts, so now i want to make a link on the bottom of the page to go to a next page "index.php?page=1" where i want to show the next 5 posts, so i need to select from 6th to the 10th post, but i dont know how i can skip the the first 5 when i use the select from sql code

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.