Tom Posted November 28, 2009 Report 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
Administrators Nabeel Posted November 28, 2009 Administrators Report Posted November 28, 2009 On the profile page? Quote
Tom Posted November 28, 2009 Author Report Posted November 28, 2009 no on index.php/Schedules/bids Quote
Administrators Nabeel Posted November 28, 2009 Administrators Report Posted November 28, 2009 I don't see anything wrong on the default templates page, are you using the default template? Quote
Tom Posted November 28, 2009 Author Report 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
Administrators Nabeel Posted November 28, 2009 Administrators Report 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
Tom Posted November 29, 2009 Author Report Posted November 29, 2009 Is that "short_open_tag" in the php.ini config? because that's set to on.. Quote
Administrators Nabeel Posted November 29, 2009 Administrators Report Posted November 29, 2009 Yeah. Can you paste in the template? To pastebin or paste2 Quote
Tom Posted November 29, 2009 Author Report 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
Administrators simpilot Posted November 29, 2009 Administrators Report 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
Tom Posted November 29, 2009 Author Report Posted November 29, 2009 No, still the same problem. Quote
Administrators simpilot Posted November 29, 2009 Administrators Report 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
Administrators Nabeel Posted November 29, 2009 Administrators Report Posted November 29, 2009 Do you have a screenshot as to what it does? That's really weird Quote
Administrators simpilot Posted November 29, 2009 Administrators Report 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
Administrators Nabeel Posted November 29, 2009 Administrators Report 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
Administrators simpilot Posted November 29, 2009 Administrators Report Posted November 29, 2009 http://pastebin.com/d523acb47 try this Quote
Administrators Nabeel Posted November 29, 2009 Administrators Report 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
Administrators simpilot Posted November 29, 2009 Administrators Report Posted November 29, 2009 http://pastebin.com/m4151bb09 Quote
Administrators Nabeel Posted November 29, 2009 Administrators Report Posted November 29, 2009 Or this one (took the table header out of php tags) http://pastebin.com/m4a9e552 Quote
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.