query('SELECT ...'); //$Rows = $Result->fetch_array(MYSQLI_NUM); // SET DYNAMIC LOCALE DATA $query="SELECT tforex_cntrycode,tforex_country,tforex_currencycode FROM $auxforexglobal_tablename WHERE tforex_cntrycode=\"$pub_loc\"";$result = mysql_query ($query); while($nt=mysql_fetch_array($result)){ $locx=$nt[tforex_country];$mktloc=$nt[tforex_country]; if($pub_loc=="MY"){$publoc="DOMESTIC ONLY";}else{$publoc=$nt[tforex_country]." ONLY";}} // SET DYNAMIC LOCALE COOKIE STARTS if($set=="loc") { if(!$lc||!$cr){}else{ $query="SELECT tforex_cntrycode,tforex_country,tforex_currencycode FROM $auxforexglobal_tablename WHERE tforex_cntrycode=\"$lc\" AND tforex_currencycode=\"$cr\"";$result = mysql_query ($query); while($nt=mysql_fetch_array($result)){ $lc = $nt[tforex_cntrycode];$cr = $nt[tforex_currencycode]; setcookie('pub_loc',$lc,time() + (86400 * 90), "/", ".asianfamoustours.com.my"); // 90 DAYS setcookie('pub_cur',$cr,time() + (86400 * 90), "/", ".asianfamoustours.com.my"); // 90 DAYS header('Refresh: 0; url='.$pagename.'');}} } // SET DYNAMIC LOCALE COOKIE ENDS //echo"locx is $locx
mktloc is $mktloc
publoc is $publoc"; // DATE FORMAT FUNCTION function dateconvertout($dateout) {list($dayout, $monthout, $yearout) = split('[/.-]', $dateout); $dateout = "$yearout-$monthout-$dayout"; return $dateout;} // HUMAN DATE FORMAT function dateconvertoutSH($dateoutSH) { list($dayoutSH, $monthoutSH, $yearoutSH) = split('[/.-]', $dateoutSH); if($monthoutSH == 1) {$monthoutYSH = "Jan";}if($monthoutSH == 2) {$monthoutYSH = "Feb";}if($monthoutSH == 3) {$monthoutYSH = "Mar";}if($monthoutSH == 4) {$monthoutYSH = "Apr";}if($monthoutSH == 5) {$monthoutYSH = "May";}if($monthoutSH == 6) {$monthoutYSH = "Jun";}if($monthoutSH == 7) {$monthoutYSH = "Jul";}if($monthoutSH == 8) {$monthoutYSH = "Aug";}if($monthoutSH == 9) {$monthoutYSH = "Sep";}if($monthoutSH == 10) {$monthoutYSH = "Oct";}if($monthoutSH == 11) {$monthoutYSH = "Nov";}if($monthoutSH == 12) {$monthoutYSH = "Dec";} $dayoutYSH = substr("$dayoutSH", -2); if($dayoutYSH==1 || $dayoutYSH==21 || $dayoutYSH==31){$xtd="st";}elseif($dayoutYSH==2 || $dayoutYSH==22){$xtd="nd";}elseif($dayoutYSH==3 || $dayoutYSH==23){$xtd="rd";}else{$xtd="th";} $dateoutSH = "$dayoutYSH-$monthoutYSH"; return $dateoutSH;} function dateconvertoutSHMY($dateoutSHMY) { list($dayoutSHMY, $monthoutSHMY, $yearoutSHMY) = split('[/.-]', $dateoutSHMY); if($monthoutSHMY == 1) {$monthoutYSHMY = "Jan";}if($monthoutSHMY == 2) {$monthoutYSHMY = "Feb";}if($monthoutSHMY == 3) {$monthoutYSHMY = "Mac";}if($monthoutSHMY == 4) {$monthoutYSHMY = "Apr";}if($monthoutSHMY == 5) {$monthoutYSHMY = "Mei";}if($monthoutSHMY == 6) {$monthoutYSHMY = "Jun";}if($monthoutSHMY == 7) {$monthoutYSHMY = "Jul";}if($monthoutSHMY == 8) {$monthoutYSHMY = "Ogo";}if($monthoutSHMY == 9) {$monthoutYSHMY = "Sep";}if($monthoutSHMY == 10) {$monthoutYSHMY = "Okt";}if($monthoutSHMY == 11) {$monthoutYSHMY = "Nov";}if($monthoutSHMY == 12) {$monthoutYSHMY = "Dis";} $dayoutYSHMY = substr("$dayoutSHMY", -2); if($dayoutYSHMY==1 || $dayoutYSHMY==21 || $dayoutYSHMY==31){$xtdMY="st";}elseif($dayoutYSHMY==2 || $dayoutYSHMY==22){$xtdMY="nd";}elseif($dayoutYSHMY==3 || $dayoutYSHMY==23){$xtdMY="rd";}else{$xtdMY="th";} $dateoutSHMY = "$dayoutYSHMY-$monthoutYSHMY"; return $dateoutSHMY;} ?> Asian Famous Tours & Travel (MALAYSIA)
Asian Famous Tours & Travels
  ";$ulocx = strtoupper($locx);echo"$ulocx ($pub_cur) 
"; ?>
 
  DESTINATION
"; $query="SELECT comm_trlocation, comm_trlocationcountry FROM $commontrlocation_tablename WHERE comm_trlocationcountry!=\"$locx\" ORDER BY `comm_trlocationcountry` ASC"; $result = mysql_query ($query); echo "
  PACKAGE TYPE
"; $query="SELECT comm_trtype FROM $commontrtype_tablename ORDER BY `comm_trtype` ASC"; $result = mysql_query ($query); echo "
  TRAVEL DATE
 
"; ////////////////////////////////////// GADGET ENDS HERE /////////////////////////////// ?>

 

PROMOTIONS

"; $conn = mysql_connect("$tdz_host", "$tdz_username", "$tdz_password"); mysql_select_db("$tdz_databasename", $conn); //if($publoc=="DOMESTIC ONLY"){$publoc="WEB - DOMESTIC";}else{$publoc="WEB - OTHERS";} //$market1 = "GENERAL";$market2 = "WEB - ALL";$market3 = $publoc; //$market1 = "ALL";$market2 = $publoc; // (TODAY) $date_pq = mktime(0,0,0,date("m"),date("d"),date("Y")); $date_pw = date("Y-m-d", $date_pq); $sql = ("SELECT * FROM $auxpromoglobal_tablename WHERE tpromo_showstart <= \"$date_pw\" AND tpromo_showend >= \"$date_pw\" AND complete=\"1\" ORDER BY `tpromo_regdate`,`id` DESC"); $pager = new PS_Pagination($conn,$sql,50,1);$rs = $pager->paginate(); while ($row = mysql_fetch_assoc($rs)){ $variable1=$row["tpromo_title"]; $dateout3 = $row["tpromo_regdate"]; $dateout3 = dateconvertoutSH($dateout3); echo"

";print($row["tpromo_title"]);echo"

$dateout3

";print($row["tpromo_detail"]);echo"

"; if($row["tpromo_auxsrc"]==""){}else{echo"
";print($row["tpromo_auxsrc"]);echo"
";} if($row["tpromo_auxsrc2"]==""){}else{echo"
";print($row["tpromo_auxsrc2"]);echo"
";} if($row["tpromo_auxsrc3"]==""){}else{echo"
";print($row["tpromo_auxsrc3"]);echo"
";} echo"
"; } if (!$variable1){echo"

 

 CONTACT US

There seems to be no promotions to be publish at the moment, please try again later OR Contact Us $agent_phone

";} // END SHOW ARTICLE ?>
 

 

Subscribe Our Newsletter
"; echo"
"; echo"
"; // SUBSCRIPTION BOX ?>
We are a Member of
  • MATTA
  • NATAS