hi,
well, mysql_insert_id() is of course only for mySQL. But i guess you can do this like:
insert the record
'if' the columns have the auto_increment field, then right after inserting get the MAX value which will be the latest inserted ID.
i know its not as efficient as insert_id() method, and can give problems if LOTS of users are using the system, and it happens that someone inserted record within same second.
🙂