query("SET NAMES 'utf8'"); $query = 'SELECT * FROM `x_arenda` WHERE img="' . $_GET['x'] . '" LIMIT 1' or die("Error in the consult.." . mysqli_error($link)); $res_i = mysqli_query($link, $query); while($rom=mysqli_fetch_array($res_i)) { $img = "images/icons/" . $rom["icon"] . ".png"; if (file_exists($img)) $ic = " "; else $ic = ""; $title = $ic . $rom["ttl_en"]; include('inc/header.php'); if($rom["xpl_en"]!="") echo $rom["xpl_en"] . "
"; if($rom["y"]!="") echo $rom["y"] . "
"; if($rom["ves_en"]!="") echo "load capacity: " . $rom["ves_en"] . "
"; if($rom["s"]!="") echo "Square: " . $rom["s"] . "
"; if($rom["x_en"]!="") echo $rom["x_en"] . "
"; if($rom["h"]!="") echo "price: " . $rom["h"] . " rubles/hour
"; if($rom["d"]!="") echo "price: " . $rom["d"] . " rubles/24 hours
"; if($rom["m"]!="") echo "price: " . $rom["m"] . " rubles/month
"; if($rom["sale_en"]!="") echo "Sale: " . $rom["sale_en"] . " rubles
"; if($rom["adr_en"]!="") echo "

Address: " . $rom["adr_en"] . "
"; echo "Renting documents are provided.
"; echo "

"; if($rom["map"]!="") echo '

'; if($rom["youtube"]!="") { $pag=explode(",",$rom["youtube"]); for($e=0;$e

'; } } $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_0.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_1.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_2.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_3.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_4.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_5.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_6.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_7.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_8.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; $img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_9.jpg"; if (file_exists($img)) echo "" . $rom["ttl_en"] . ", " . $rom["xpl_en"] . " "; echo "
"; $tip = $rom["tip_en"]; include('inc/footer.php'); } mysqli_free_result($res_i); ?>