You have to post your code in radiant, harmonious formatting as per FAQs so that we can understand it (like finding mistakes in indentation, etc) and help you.
Also, please always check previous posts on the same issue. You may find the solution already there. This might help