Yep this is a mysqli thing, and I am not sure of the correct replacement for mysql_insert_id. You can try mysqli_insert_id and see if that works.. but I am not sure if an additional change is needed as well..
Or, to ensure future compatibility, you could use the $db->Insert_ID () function to retrieve that last inserted ID.
Bookmarks