I'm trying to figure out (probably super simple, but...) how to select the single most recent record from the database, by id I guess would be easiest. The idea is that I have a fairly simple news posting type of setup happening so it selects and displays all records in descending order by id:
$query = " SELECT date, bandname, description FROM $tablename WHERE month='$month' ORDER BY id desc";
But I need to set up a single headline as in 'Featured Artist' on the front page, so 'ORDER BY id desc' is irrelevant to the code. I simply need something like ORDER BY gimme one damn record 😃
Any help would be appreciated! Thanks.
-gen