Give the gift of Drupal. All merchandise is 50% off through 2016.
I don't see a Drupal function comparable to mysql_insert_id. Obviously using the command would mean PostgreSQL wouldn't work (would it?)... so I'm curious if instead of using mysql_insert_id after an insert I should use db_next_id before the insert to store the next insert's id.