ukmil Posted November 28, 2011 Report Share Posted November 28, 2011 Hi, just a bit of help needed, on my pilots page, I have the current location displayed, but I can only get it to show the ICAO using <li><strong>Current Location: </strong><?php echo $report->arricao; ?> How can I get it to also show the NAME, I have tried $report->arrname; but that does not work any ideas? Quote Link to comment Share on other sites More sharing options...
mattia Posted November 28, 2011 Report Share Posted November 28, 2011 try this: <?php echo $pirep->arrname?> Quote Link to comment Share on other sites More sharing options...
ukmil Posted November 28, 2011 Author Report Share Posted November 28, 2011 thanks, but does not work Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2011 Administrators Report Share Posted November 28, 2011 do print_r($report) to see what variables are available Quote Link to comment Share on other sites More sharing options...
ukmil Posted November 28, 2011 Author Report Share Posted November 28, 2011 Nabeel, thanks, but my PHP is limited and I am learning, but I have no idea where to put that line to get the list of variable. Any help would be great Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2011 Administrators Report Share Posted November 28, 2011 For now you can put it in where <?php echo $report->arricao; ?> is it'll mess up your output but thats ok for now Quote Link to comment Share on other sites More sharing options...
ukmil Posted November 28, 2011 Author Report Share Posted November 28, 2011 mm, tried that, nothing happened. I did <li><strong>Current Location: </strong><print_r($report)></li> and got no output then I did <li><strong>Current Location: </strong>print_r($report)</li> and it just placed the words as text on the page. Where am I going wrong? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2011 Administrators Report Share Posted November 28, 2011 It has to be in PHP tags <?php print_r($report); ?> You'll see a list of variables you can use with <?php echo $report->[variable]; ?> Quote Link to comment Share on other sites More sharing options...
ukmil Posted November 28, 2011 Author Report Share Posted November 28, 2011 Great, thanks, that worked, and I know see the list of variables, unfortunatly, the one I wanted to use, is not there. Shame Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2011 Administrators Report Share Posted November 28, 2011 You can make a call to get the airport information. If you do a search, it's around, I don't remember the exact call off the top of my head. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2011 Administrators Report Share Posted November 28, 2011 You can make a call to get the airport information. If you do a search, it's around, I don't remember the exact call off the top of my head. Quote Link to comment Share on other sites More sharing options...
ukmil Posted November 28, 2011 Author Report Share Posted November 28, 2011 thanks, I will see what I can find. it is annoying because I can use the arrname tag on other pages, just not on this one 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.