For fixing copper pipes the thing to use is solder. The stuff with a few percent silver in it is a little easier to use than plain no-lead
solder (they don't sell solder with lead in it anymore for plumbing).
All copper pipes and fittings (elbows, tees, valves) need flux to dissolve the oxide layer so that the solder will stick. Go to you closest home store and buy a book on plumbing and it will likely explain all you want to know.
--Glenn Lyford