There is no php function called mysql_insert_mail_id(), the php function is mysql_insert_id([resource link_identifier ]) witch will return the ID generated from the previous INSERT operation.
Or u my use mysql query:
SHOW TABLE STATUS LIKE `table_name`