After executing the query below I use the PHP function mysql_insert_id() and it always gives me 0.
mysql_insert_id()
UPDATE tbl_training_types SET fld_seri
Return Values
The ID generated for an AUTO_INCREMENT column by the previous query on success, 0 if the previous query does not generate an AUTO_INCREMENT value, or FALSE if no MySQL connection was established.
Source PHP Manual