I gave up on the template thing and combined that with the code.
My loop isn't quite working as planned. I get a question displayed then both rows of Statistics, then I get another question but it is outside the table and stretches the page double wide.
Can't find the error.
Any help is appreciated.
Only registered users can see links on this board! Get registered or login to the forums!
Joined: Aug 30, 2005 Posts: 2063 Location: near Albany NY
Posted:
Tue Oct 16, 2007 2:36 pm
I took a quick look but it is asking a lot for anyone to go thru all that code. I sure don't have the time. A couple of suggestions about an approach instead. Down after the begin question comment you keep jumping into and out of PHP like it was a hot potato. I can't see any reason, the whole section, at a minimum, could all be inside of one start PHP, end PHP. It just makes the code more difficult to fathom and debug the way you have it. You also should use indentation to align your tables, tr, and tds. Start a table, then put the row indented say 3 spaces beneath that, then any tds then back out with close tds close trs and close tables with the same indentation. That way you will be able to more easily visualize the structure. Also run the thing thru a validator and it will tell you if you have any unclosed tags. There's also tools like (I think) html tidy that will show you the structure.
And if you still want someone from here to look at it, well they may be more generous with their time than I am, but I'd suggest you extract the problematic code and try to isolate it so someone can look at it without wading thru tons of extraneous stuff.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum