Display last 10 entries from database..
Hi,I would like to display the 10 last entries from my database, I am using PHP and mySQL and Dreamweaver..
the last entries are defined by the 10 highest ID numbers in the database, but there can be gaps in the numbers if an entry has been removed.
What would the WHERE statement look like in my query ![]()
SELECT *
FROM databasetable
WHERE ID = highest number minus 10?
ORDER BY ID ASC
Any ideas greatly appreciated!
Regards, Ken ![]()
