![]() |
|
|
+ Search |
![]()
|
Aug 31st, 2004 00:40
Maurice, Philip Olson, Thomas Cherian,
It depends on what you mean by "Latest" but let's assume this table has auto_increment ids for every record, we'll call this column id. So now create your SQL query and ORDER BY the id, in descending order, and add a limit: SELECT id,name,email FROM sometable ORDER BY id DESC LIMIT 25 That will select the last 25 records from the table.