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
[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
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
3 matches
Mail list logo