Jump to content

[SOLVED] odd LIMIT problem


wmguk

Recommended Posts

hey guys, im simply trying to limit the result returned from the database to the newest 3 records...

 

$sql = "SELECT * FROM news ORDER BY pdate DESC LIMIT 3"; 

 

currently there are 6 records, and I want, 4, 5, 6 to be shown, however for some odd reason, at the moment it is showing 3, 4, 5 - and not the newest one...

 

any ideas what I did wrong?

Link to comment
https://forums.phpfreaks.com/topic/123010-solved-odd-limit-problem/
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.