OpenGL - GL_SELECT

Hi I'm working on a Jedi Knight 3DO model editor
and I've heard that if I wan't to return which face
the user have selected with the mouse I have
to use GL_SELECT

could anyone post some sample code?

Michael