Here is something people can laugh at. But to be honest, I am at the end of myself with this. I can't find any resources to help me with this problem except here and I hate to seem young and inexperienced, but I don't know what I am doing wrong. Here is the code for a calendar I am trying to write. Please pick it apart if you have time and tell me why it wont advance/go back a month, and why it doesn't even load correctly. By the way, this is to be the framework for an events calendar that will be updated through Perl or MySQL database. If that matters in your reading of the code. Thank you for helping and not laughing at me too hard.