lastInsertId

Syntax
int lastInsertID(
  resource &$db,
  string $fieldname
  )

Description

This function returns the last insert id from the specified database.