hi mel, this is the query you can use to query the last 10 rows in mysql database

$SQL = "SELECT * FROM myTable ORDER BY FieldID DESC LIMIT 10";

the above query tells mysql that you want to select the last 10 rows from the myTable in you database

hope that helps