php result disappears
Permalink
I placed some php (code below) in the sidebar of a page to fetch the price of a tour from an external site where the data is stored. This works fine when in edit mode and when the page refreshes itself.. But as soon as I save or publish the retrieved field (the price) disappears.
The only reason I can think of why this might happen is that in the main content area I also include php which pulls in data from the same external xml file. Maybe this conflicts...But it seems strange that it works fine when the page refreshes in edit mode, but not when saved or published.....?
Any ideas?
http://gotimetrekkers.com/concrete5/tour/richard-iii-and-battle-bos...
The only reason I can think of why this might happen is that in the main content area I also include php which pulls in data from the same external xml file. Maybe this conflicts...But it seems strange that it works fine when the page refreshes in edit mode, but not when saved or published.....?
Any ideas?
http://gotimetrekkers.com/concrete5/tour/richard-iii-and-battle-bos...
<?php include_once("config.php"); include_once('tourcms.php'); $tc = new TourCMS($marketplace_account_id, $api_private_key, 'simplexml'); $tour = 21; $channel = 9515; $result = $tc->show_tour($tour, $channel); $tour = $result->tour;?> From: <?php echo $tour->from_price_display.''; ?>