Battery dies only when I try to start the car

Yea, a poor connection anywhere in the chain can be such a problem. Remember to disconnect and clean both ends of each suspect wire. Sometimes a wire or connection look great, but have a problem under the insulation of connection point.