View Single Post
  #5 (permalink)  
Old February 4th, 2004, 11:42 AM
codeman codeman is offline
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What you have to do is to isolate the problem, even if it means putting echo statements incrementally through your code to see what gets executed. Start an echo statement where you think the code should start putting out the months, and see if it is looping properly, etc. You will innevitably find the source of the problem as some of the echo statements you think should be put to the screen will not do so. Either that or start with a smaller bit of code to debug, and then slowly add the extra.

ie. use the scientific method... experiment and test. Trying to get one big piece of code working without testing the parts is insane :) not to mention impossible.

Reply With Quote