Tom Posted November 28, 2009 Report Share Posted November 28, 2009 Hi, On my bids page im getting the following, rather than my list of bids: $bid->flightnum; ?> depicao; ?> to arricao; ?> aircraft; ?> (registration?>) deptime;?> arrtime;?> distance;?> Is there any known fix for this? (Using latest beta) Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2009 Administrators Report Share Posted November 28, 2009 On the profile page? Quote Link to comment Share on other sites More sharing options...
Tom Posted November 28, 2009 Author Report Share Posted November 28, 2009 no on index.php/Schedules/bids Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2009 Administrators Report Share Posted November 28, 2009 I don't see anything wrong on the default templates page, are you using the default template? Quote Link to comment Share on other sites More sharing options...
Tom Posted November 28, 2009 Author Report Share Posted November 28, 2009 It's a modified template, but i didn't edit anything to do with that, and it was working before.. it's just suddenly not working now. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2009 Administrators Report Share Posted November 28, 2009 It seems like you're using short php tags (<? instead of <?php), and maybe they got turned off on your server or a configuration setting changed Quote Link to comment Share on other sites More sharing options...
Tom Posted November 29, 2009 Author Report Share Posted November 29, 2009 Is that "short_open_tag" in the php.ini config? because that's set to on.. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 Yeah. Can you paste in the template? To pastebin or paste2 Quote Link to comment Share on other sites More sharing options...
Tom Posted November 29, 2009 Author Report Share Posted November 29, 2009 http://pastebin.com/m573fd5e5 The only edit I made was adding a div tag at the top, and my own template at the bottom for the sidebar. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 line 29 <td><?php echo $bid->code . $bid->flightnum; ?></td> change to: <td><?php echo $bid->code .' '. $bid->flightnum; ?></td> Think that should fix you up Quote Link to comment Share on other sites More sharing options...
Tom Posted November 29, 2009 Author Report Share Posted November 29, 2009 No, still the same problem. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 line 26 as well <tr id="bid<?php echo $bid->bidid ?>"> add semi colon <tr id="bid<?php echo $bid->bidid; ?>"> also eariler post should have reffered to line 27 not 29 - sry also also on line 29 <tr id="bid<?php echo $bid->bidid ?>"> add semicolon <tr id="bid<?php echo $bid->bidid; ?>"> Quote Link to comment Share on other sites More sharing options...
Tom Posted November 29, 2009 Author Report Share Posted November 29, 2009 Still nope. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 Do you have a screenshot as to what it does? That's really weird Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 OK - The issue is at the start of the file - the echo never gets closed and you reopen php again without closing it. Hang on and I will pastebin a new one. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 Take a look at line 42 to 44. Seem like a php tag is missing <hr>'; } ?> Should be <hr> <?php } ?> Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 http://pastebin.com/d523acb47 try this Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 Ah yes, at the top of the file as well <?php if(!$bids) { echo '<p align="center">You have not bid on any flights</p>'; } else { echo ' Should be <?php if(!$bids) { echo '<p align="center">You have not bid on any flights</p>'; } ?> Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 http://pastebin.com/m4151bb09 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 Or this one (took the table header out of php tags) http://pastebin.com/m4a9e552 Quote Link to comment Share on other sites More sharing options...
Tom Posted November 29, 2009 Author Report Share Posted November 29, 2009 Nabeel that worked Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.