Hey, I'm glad you solved your problem!
I know what you mean, and no need to be embarrassed. A lot of programming involves simplifying code that's too complex.
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!