Op http://bravoc.be/pt/ ben ik bezig met een app te maken.
Als ik echter op hotels klik verschijnt er $url en ik kan daar wel op klikken met rechtermuisknop en dan openen in nieuw tabblad maar als ik daar met linkermuisknop op klik of open via smartphone dan werkt dit niet.
Oplossing?
Dit is de code die ik gebruik in hotel.php
<?php $hotel = simplexml_load_file('./data/hotel.xml');
foreach ($hotel as $hotelinfo):
$hotelnaam=$hotelinfo->hotelnaam;
$beschrijving=$hotelinfo->beschrijving;
$checkin=$hotelinfo->checkin;
$checkout=$hotelinfo->checkout;
$locatie=$hotelinfo->locatie;
$url=$hotelinfo->url;
echo '<div class="content-block-title">';
echo $hotelnaam;
echo '</div>
<div class="content-block">
<div class="content-block-inner">
<p>';
echo $beschrijving;
echo '<br><br><b>check-in</b> ';
echo $checkin;
echo ' <b>check-out</b> ';
echo $checkout;
echo '<br><br>';
/* echo '<a href="' . $url . '">'$url'</a>';*/
echo '<a href="' . $url . '">$url</a>';
echo '<br><br><i class="icon icon-location"></i> ';
echo $locatie;
echo '</p>
</div>
</div>';
endforeach;
?>
Dit is de code van hotel.xml
<hotels>
<hotel>
<hotelnaam>Residhome Nancy Lorraine</hotelnaam>
<beschrijving>Dit hotel ligt op 10 minuten lopen van het centrum van de stad, dicht bij het beroemde Place Stanislas en het Parc de la Pepiniere. Het biedt gratis Wi-Fi.</beschrijving>
<checkin>30-08-2014</checkin>
<checkout>31-08-2014</checkout>
<locatie>9 Boulevard de la Mothe, 54000 Nancy</locatie>
<url>http://www.residhome.com/residence-hoteliere-aparthotel-nancy-123.html</url>
</hotel>
</hotels>
1.250 views