$dbHost='localhost'; if($_SERVER['SERVER_ADDR']!="91.201.60.12"){ $dbHost='91.201.60.12'; } $dbName='gubnu_hotell'; $dbUser='gubnu_hotell'; $dbPassWord='sp11sp11'; $link = ($GLOBALS["___mysqli_ston"] = mysqli_connect($dbHost, $dbUser, $dbPassWord)); if (!$link) { die('Could not connect: ' . mysqli_error($GLOBALS["___mysqli_ston"])); } mysqli_select_db($GLOBALS["___mysqli_ston"], $dbName) or die ('Could not connect2: ' . mysqli_error($GLOBALS["___mysqli_ston"])); mysqli_set_charset($GLOBALS["___mysqli_ston"],"utf8"); #SET Default values $domain=$_SERVER['SERVER_NAME']; $q=mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from page where url like '%".$domain."'"); #$domain="http://www.gbgo.nu/newDesign/hotell2/"; $dInfo=array(); if(mysqli_num_rows($q)>0){ while($r=mysqli_fetch_object($q)){ $dInfo['name']=$r->name; $dInfo['about']=$r->about; $dInfo['city']=$r->city; $dInfo['id']=$r->id; $dInfo['stat']=$r->stat; } } else{ echo "Sidan finns inte!"; exit(); } $pId=$dInfo['id']; ?> Notice: Undefined variable: dInfo in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 52 Notice: Undefined variable: dInfo in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 52 Notice: Undefined variable: dInfo in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 53 Notice: Undefined variable: dInfo in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 53 Notice: Undefined variable: dInfo in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 53 Notice: Undefined index: ___mysqli_ston in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 338 Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 338 Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, null given in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 340 Notice: Undefined index: ___mysqli_ston in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 338 Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 338 Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, null given in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 340 Notice: Undefined index: ___mysqli_ston in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 542 Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 542 Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, null given in /storage/content/75/2005275/hotellnorrland.se/public_html/index.php on line 544 Hotell i . Boka Boende och .

Hotell i

 
 
 
© 2018