Item page from coded query

Sam, could you point me toward where I could learn more about how to write the code to make sure the current user matches the one in the URL?