Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.