'); // Create the function, so you can use it function isMobile() { return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|phone|iphone|ipad|pie|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]); } // If the user is on a mobile device if(isMobile()){ echo (''); } else { echo (''); } echo('
'); // If the user is on a mobile device if(isMobile()){ echo (''); } else { echo ('
'); } echo ('
'); // If the user is on a mobile device if(isMobile()){ echo('

  • '); $query = "SELECT apt_name,cat_url FROM apartment_cat"; $result = mysqli_query($link, $query); while($table = mysqli_fetch_array($result)) { $cat_url=$table["cat_url"]; $x=$table["cat_url"]; $d=str_replace(" ", "-",$x); $d=str_replace(" ", "-",$d); echo('
  • '.$table["apt_name"].'
  • '); } echo ('
  • Menu ☰
'); } $query = "SELECT id,siteName,address,region,google,uniqueSellingPoint,inTheArea,facilities,county,type,place,siteDescription,siteImage1,siteImage2,siteImage3,siteImage4,tradeDoublerLink FROM caravan WHERE id='$id_get'"; $result = mysqli_query($link, $query); while($table = mysqli_fetch_array($result)) echo ('

'.$table["siteName"].' '.$table["place"].'

'.$table[

'.$table["siteDescription"].'

'.$table[ '.$table[

Facilities at '.$table["siteName"].' '.$table["place"].'

'.$table["facilities"].' '.$table[

Accommodation

'.$table["uniqueSellingPoint"].'

The Local '.$table["place"].' Area

'.$table["inTheArea"].'

'); ?>