$link = mysqli_connect('localhost','simplyv','PaDe75i','simplyv_adv') or die("Error " . mysqli_error($link));
$link->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 "