0 && $no_rate_show != "Y"){
$out = "{$line[curr]} " . $line[sr_single];
}else{
$out = "TBA";
}
}else{
$out = "TBA";
}
return $out;
}
// popular hotel / villa
$sql = "SELECT o.id AS 'oid', o.org_name, o.org_catagory, o.org_address, o.org_city, o.org_state, i.img1 from organization o, org_info i where o.id = i.org_id and o.org_show = 'Y' and (o.org_city='Nusa Dua' OR o.org_city='Sanur') order by i.hits DESC LIMIT 0,5";
$pop_rst = open_mysql ("abldata", $sql); open_mysql ("close");
$pop_org = "
";
$gd=0;
while ($pop_line = mysql_fetch_array($pop_rst, MYSQL_ASSOC)){
$pop_image=$pop_line["img1"];
$pop_url = "/".$pop_line["org_catagory"]."/".$pop_line["org_catagory"]."_detail/overview/".$pop_line["oid"].".html";
$rate_start = get_minimum_rate($pop_line["oid"], '', $pop_line["no_rate_show"]);
$pop_org .= "";
$pop_org .= " | ";
$pop_org .= "".$pop_line["org_name"]." | ";
$pop_org .= "from " . $rate_start ." | ";
$pop_org .= "
";
if($gd!=4){
$pop_org .= " |
";
}
$gd++;
}
$pop_org .= "
";
echo $pop_org;
?>