Its given in the tutorial, your search on google must have been a great help.
ADODB also supports $connection->Affected_Rows() (returns the number of rows affected by last update or delete) and $recordset->Insert_ID() (returns last autoincrement number generated by an insert statement). Be forewarned that not all databases support the two functions.
so here it is
Equivalent to mysql_affected_rows is
And Equivalent to mysql_insert_id is