Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Tue Oct 16, 2007 2:21 pm Reply with quote

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.

http://www.donovanfamily.us/flight/viewquestions.txt
 
View user's profile Send private message Visit poster's website ICQ Number
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Tue Oct 16, 2007 2:36 pm Reply with quote

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 user's profile Send private message Visit poster's website
Donovan







PostPosted: Wed Oct 17, 2007 9:53 am Reply with quote

Yeah. I cobbled together 3 different templates and didn't format anything. After going through tooth and nail I found the issue and fixed it.

Thanks

I do have a questions on a popup but will use another thread.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©