Miggel Posted March 17, 2018 Report Share Posted March 17, 2018 Hi, I am trying for 2 days to solve the code for the connection with all the Aiports and the Map. Where is the mistake? // Print out rows <?php $airports = OperationsData::getAllAirports(); /* Above <td> You have to put it */ foreach($airports as $airport) { "svgPath": targetSVG" ',' echo ' "title": ' . $airport->name . ',' echo ' "latitude": ' . $airport->lat . ',' echo ' "longitude": ' . $airport->lng . '' echo " }"; } ?> So I bring at least one airport ... { "svgPath": targetSVG, "title": "<?php echo $airport->name; ?>", "latitude": <?php echo $airport->lat; ?>, "longitude": <?php echo $airport->lng; ?> }, ] }, <?php } ?> 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.