Jump to content

[SOLVED] show records 5-8 inclusive?


delphi123

Recommended Posts

Hi,

 

I've got the following code:

 

$query = ("SELECT news_id, category, title, text, img_url, linkto, DATE_FORMAT(date,'%d %M, %Y') as sd FROM news_posts ORDER BY date DESC LIMIT 4") or DIE ("Can't retrieve");

 

showing the latest four posts by date.

 

Elsewhere in the site I'd like to show the next four (ie posts 5,6,7,8 )

 

Can anyone show me how my SQL can be modified to do this?

Link to comment
https://forums.phpfreaks.com/topic/79096-solved-show-records-5-8-inclusive/
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.