i have been beating my head up against the wall,

you see, i have this script i am making, and i have a table with a column called studentId and each student has a unique id. so now i want to find last entry in mysql database.Choosing last entry of MySQL table should be easy i know, but i can't find a query.

as each student signs up, it creates an incremental ID, that field is called studentId, do you know how i can get the last row from mysql database using php?