if($num > 0){ ?>
while($row = $result->fetch_assoc()){
$queryImages = "select * from images where idrental = '$row[idrental]' order by position asc limit 1";
$stmtImages = $con->prepare($queryImages);
#$stmt->bind_param(str_repeat("s", count($parameters)), ...$parameters);
$stmtImages->execute();
$stmtImages->store_result();
$numImages = $stmtImages->num_rows;
$stmtImages->execute();
$resultImages = $stmtImages->get_result();
$prep2 = 0;
while($rowImages = $resultImages->fetch_assoc()){
$image_file = '/nicaragua-rental/images/folder_'.$row['idrental'].'/'.str_replace(' ',' ',$rowImages['filename']);
if(file_exists($image_file)){
$image_file = '/nicaragua-rental/images/folder_'.$row['idrental'].'/'.str_replace(' ','%20',$rowImages['filename']);
break;
}
}
/*$style_transform = "";
$image_file = 'nicaragua-rental/images/folder_'.$row['idrental'].'/'.str_replace(' ','%20',$rowactivepicture['filename']);
if(!file_exists($image_file)){
$image_file = 'nicaragua-rental/images/folder_'.$row['idrental'].'/'.str_replace(' ','%20',$rowactivepicture['filename']);
}
if(file_exists($image_file)){
$image_size = getimagesize($image_file);
$is = number_format($image_size[0]/$image_size[1],2);
}*/
?>
/*
*/ ?>
if(($row['video'] != '') or ($row['videoid'] != '')){ ?> } ?> echo $row['rentalname']; ?>
if($lang == 1){ ?>From }else{ ?>Desde } ?>
U$
if($_GET['ptype'] > 1){
if($row['pricefrom3'] > 0) echo $row['pricefrom3']; if($lang == 1) echo '/month'; else echo '/mes';
}else{
if($row['pricefrom'] > 0) echo $row['pricefrom'];
else echo $row['pricelownight'];
?>
/ if($row['pricetype'] == 1){ if($lang == 1) echo 'week'; else echo "semana"; }elseif($row['pricetype'] == 2){ }else{ if($lang == 1) echo 'night'; else echo 'noche'; } ?>
}?>
/*
*/ ?>
>
$infoArr = array();
if($row['bedrooms'] > 0){
if($lang == 1){ $thisStr = 'Rooms'; }else{ $thisStr = 'Cuartos'; }
$infoArr[] = '
'.$row['bedrooms'].' '.$thisStr.'
';
}
if($row['sleeps'] > 0){
if($lang == 1){ $thisStr = 'Guests'; }else{ $thisStr = 'Personas'; }
$infoArr[] = '
'.$row['sleeps'].' '.$thisStr.'
';
}
if($row['bathrooms'] > 0){
if($lang == 1){ $thisStr = 'Baths'; }else{ $thisStr = 'Baños'; }
$infoArr[] = '
'.$row['bathrooms'].' '.$thisStr.'
';
}
if($row['nightmin'] > 1){
$infoArr[] = '
'.$row['nightmin'].' min
';
}
?>
echo $infoArr[0]; ?>
echo $infoArr[1]; ?>
echo $infoArr[2]; ?>
echo $infoArr[3]; ?>
} ?>
include('pagination.php'); ?>
}else{ ?>
Oops...
if($lang == 1){ ?>Your search do not mach with any rental property. }else{ ?>Su busqueda no encontró ninguna propiedad de renta. } ?>
} ?>
}else{ ?>
} ?>