applying material id to seletion.

how do id a sected part of an object, then apply texture to only the selected area and not the whole object?

also how do i assign numbers to selections and objects?

nvm i got, it sorry for posting a useless thread.

To apply multiple materials to a single object