textures help please

hi, i just need a simple example of loading a texture, preferably using SOIL but any example would do, just it has to be simple, like a single triangle with a texture rendered to it. if you could point me to a spot on the web or just upload some code id be very grateful.
thanks