Jump to content

[SOLVED] Need help with the LIMIT statment..


robotman321

Recommended Posts

Ok i have this LIMIT function that is not working to my liking, i am running 4.1.22-standard, and this is the statement:

SELECT id, newstitle, newsdate, newscontent FROM news ORDER BY id DESC LIMIT 6

 

Now i want it to display the latest 6, now it starts to display the first 5 of the 6, I put a more current "news Item" into the DAtabase but it doesnt show.

 

Say there are 6 items the 6th item being the Newest and it wont display that id#6.  I don't know why it just wont display...

 

you can see it here where it only shows the first 4 when the 5th is in the system it just won't show.

http://rs-serenity.com/homepage.php

 

Thank-you for all help :D

`Robot

Link to comment
https://forums.phpfreaks.com/topic/87244-solved-need-help-with-the-limit-statment/
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.