Like stolzyboy stated if you were to post your code it might offer a clue as to what is happening or not happening...I don't think we have too many mind readers in these forums.
Also when posting code in these forums use PHP BB Code or the appropriate BB Code like code or HTML just click my signature on how to do this.