As Kevin said, the simple answer to this question would be to simply take the time to understand how the code is working, then you might understand why it's not working for you. I'm tempted to close this thread on the grounds that this EXACT question has been asked like 5000^21421531513236 times