Jump to content

Easy question


waynew

Recommended Posts

I have a table called MESSAGES. It holds all the posts to a particular board. The primary ID of each post starts at zero and increments automatically.

 

I want to show only the last 20 posts. How should I go about doing that? As in what SQL? Also, I want to delete all of those who fall outside this last-20 paremeter. Any help on his subject would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/106649-easy-question/
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.