Understanding how textures work in OpenGL can be confusing. Especially for someone new to OpenGL. I Hope that this brief introduction to OpenGL textures can help you.
If you are having problems learning OpenGL, I know how you feel. OpenGL is confusing and is very easy to give up learning it. But hang in there. Let me share with you my first struggles with OpenGL.