There is no last row by default. You need to order the table by some field.
The best way is to make sure the row you want is the FIRST in the result.
Then you can have a query:
<?php select * from table .... order by ID desc.... LIMIT 1 ?>
I guess there is no problem to send the query, when you have it, from a PHP program.
Question and answer is powered by AnsPress.io