It's little unclear what you did but... the portion of the film that stayed in the canister never got exposed to anything. That part is fine. The part you pulled out before you closed the back of the camera IS exposed to light, ie. bad. If you loaded the film and released shutter few times, that part may be exposed - depending on what was wrong with your first camera.

It's usually OK to load and unload the film in day light. If I had to do it outside, I usually go to shade or if that's impossible, turn my back to the sun so as to create a shadow with my own body.