ah now i feel like an idiot... a happy idiot, but an idiot none the less =)

it wasnt a coding error at all, but an error in the sums i had entered. il spare the details, but i now have a neural network that can learn the OR function, the AND function, and any other linearly separable two input problem.

cheers for all the help i got, even though it wasnt a coding error in the end i still learnt a lot from you guys.

keep it real, y'all.