When in doubt, escape your variables (i.e. put '' around them). Looks like PHP is interpreting the html as php code to me.
I've edited the hell out of this hack (got it to work with my CSS styles, got rid of queries I wasn't using, etc) and that was usually the problem I had when weird errors popped up.
If you check the html output of the script in a vaildator I bet you will find the same thing. I catch a lot of minor errors that way.
|