Does anyone know how I can find the last record inserted into a particular table. I've looked at the mysql_insert_id function, but there seems to be too much risk of the last record being something in a totally unrelated table.
Basically, I am building a record number, other than it's id, which will go chassis-prob-#####. I want to get the last record out of the table, increment the number, and insert a new record.
Thanks in advance from a very baffled individual!