Texturing Surfaces

I am having problems understanding how the entire opengl texturing process goes. Could someone give me some example coding.

E pluribus unum:
http://nehe.gamedev.net/tutorials/lesson06.asp