$title = "Rent in Monchegorsk and Murmansk region";
include('inc/header.php');
$link = mysqli_connect('localhost','simplyv','PaDe75i','simplyv_adv') or die("Error " . mysqli_error($link));
$link->query("SET NAMES 'utf8'");
$query = 'SELECT * FROM `x_arenda` ORDER BY dir' or die("Error in the consult.." . mysqli_error($link));
$res_i = mysqli_query($link, $query);
while($rom=mysqli_fetch_array($res_i))
{
if($rom["tip_en"]!=$tip) echo "
" . $rom["tip_en"] . "
";
echo "";
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["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["adr_en"]!="") echo "Address: " . $rom["adr_en"] . "
";
echo "Renting documents are provided.
";
$img = "images/" . $rom["dir"] . "/" . $rom["img"] . "_0.jpg";
if (file_exists($img)) echo "";
echo "
";
$tip = $rom["tip_en"];
}
mysqli_free_result($res_i);
include('inc/footer.php');
?>