It's a talent I have - confusing people!
Perhaps the URL might help to make up for my verbal inadeqacies: http://www.len.org.uk/press/index.php?ID=1
There are two queries, $result and $result2
$result, at the moment, takes the $ID variable and displays that resultset giving the index page message:
"Take a look at our press releases, in date order, to keep up with what's been happening at LEN."
This, in fact, is the recordset $ID=1 - something I hope to do away with - it's a temporary kludge at the moment.
The $result2 query displays the navigational list of press releases in the top right-hand corner of the page and this works fine.
What I need to do is make the $result query operate on an if/else statement that basically says:
if there is no $ID value display the latest press release as per the date in the 'Date' column
else display the press release with the corresponding $ID value.
What I don't know how to do is to formulate the query so that only the recordset with the most recent date in the 'Date' column is selected, and therefore displayed in the body of the index.php page.
Hope this clarifies what I need to achieve!
Richard