Page 2 of 2

Posted: Mon Jun 28, 2004 9:42 am
by JayBird
Not sure how you are creating your DB, can't be bothered figuring out all your code, but if it is generated from the DB, you can use a query.

Code: Select all

SELECT * FROM your_table ORDER BY id DESC LIMIT 1
You need to have an incremental id field though for this to work

Mark

Posted: Mon Jun 28, 2004 11:53 am
by Canadian Pickle
Thanks patrikG

I will look into doing that.

Beck100, I am afraid that will not work as pointed out by patrikG.

Thanks anyways!

:?