[PHP] Displaying 5 records only/displaying specific records

2003-06-04 Thread Matt MacLeod
Hi, I'm trying to build a news panel for my home page. Basically I want to present the five most recent news articles in a recordset, but I'm not sure how to cut off the recordset after 5. Also I want to present a picture with my first headline. My code will go something like this: ?php

RE: [PHP] Displaying 5 records only/displaying specific records

2003-06-04 Thread Jay Blanchard
[snip] I'm trying to build a news panel for my home page. Basically I want to present the five most recent news articles in a recordset, but I'm not sure how to cut off the recordset after 5. [/snip] use LIMIT 5 as the last bit of your query Jay -- PHP General Mailing List

Re: [PHP] Displaying 5 records only/displaying specific records

2003-06-04 Thread CPT John W. Holmes
I'm trying to build a news panel for my home page. Basically I want to present the five most recent news articles in a recordset, but I'm not sure how to cut off the recordset after 5. Also I want to present a picture with my first headline. My code will go something like this: ?php