With a php site connected to a mysql database, what is the best way to chose the last 3 entries made?

Also, is there a way to sort the results and get like the 5th one?