$epp) { if (isset($_REQUEST['page'])) { $pagec=$_REQUEST['page']; } $pagmx=(int)(($nr-1)/$epp); if ($pagec>$pagmx) { $pagec=$pagmx; } } ?>
0) { $ngh=$ngh; } switch ($type) { case 'country': $sql="select * from property where countryid='".$countryid."' and status!='Inactive' order by id DESC limit ".$ngh.",".$epp.";"; break; case 'type': $sql="select * from property where typeid like '%,".$typeid.",%' and status!='Inactive' order by id DESC limit ".$ngh.",".$epp.";"; break; case 2: break; } //echo $sql; $result = mysql_query($sql) or die (mysql_error()); $cct=0; if (mysql_num_rows($result) != 0) { while ($rez = mysql_fetch_assoc($result)) { /*$x=strpos($rez['shortdesc'],'')+31; $y=strpos($rez['shortdesc'],"

"); $shortdes=substr($rez['shortdesc'],$x,$y-$x); $y2=strpos($shortdes,"

"); if ($y2>0) { $shortdes=substr($shortdes,0,$y2); }*/ $x=strpos($rez['shortdesc'],'uploadimages/house_icon.gif" alt="" width="35" height="29" />')+61; $y=strpos($rez['shortdesc'],''; /* $alt=$rez; $title=$rez['title']; $metakeywords=$rez['keywords']; $metadescription=$rez['title']; $title1=$rez['top_text']; $sch_term=$rez['search_term']; $alt_img=$rez['alternative_img']; $alt_link=$rez['alternative_link']; */ } } //$pagec=$pagmx; //echo "==".$nr."=="; if ($pagmx>0) { echo ''; } ?>
'); $shortdes=substr($rez['shortdesc'],$x,$y-$x); $shortdes=str_replace("
"," ",$shortdes); $shortdes=str_replace('

'," ",$shortdes); $shortdes=str_replace('

'," ",$shortdes); $shortdes=str_replace(''," ",$shortdes); $shortdes=str_replace(''," ",$shortdes); $shortdes=str_replace("

","",$shortdes); $shortdes=str_replace("
"," ",$shortdes); $shortdes=str_replace("
"," ",$shortdes); $shortdes=str_replace(""," ",$shortdes); $shortdes=str_replace(""," ",$shortdes); $shortdes=str_replace(""," ",$shortdes); $shortdes=str_replace(""," ",$shortdes); $shortdes=str_replace(" "," ",$shortdes); $shortdes=str_replace('height="120" align="center" style="width: 500px; height: 120px">
'," ",$shortdes); $shortdes=str_replace('height="120" align="center" "width: 500px; height: 120px">'," ",$shortdes); $shortdes=str_replace("BVI :","British Virgin Islands :",$shortdes); $shortdes=str_replace(""," ",$shortdes); $cct++; echo '
  '.$sch_term."   ".$shortdes.' $'.number_format($rez['price'],0,'.',',').'
'; if ($pagec>0) { if ($type=='type') { echo '<- Previous'; } else { echo '<- Previous'; } } echo ''; if ($pagec<$pagmx) { if ($type=='type') { echo 'Next ->'; } else { echo 'Next ->'; } } echo '