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 /////////////////////////////// ?>

 

  Invalid Email Address format, please try again.×
";} else { //Connect to database //$db = mysql_connect("$tdz_host", "$tdz_username", "$tdz_password"); //mysql_select_db("$tdz_databasename", $db); $to = $EMAIL; $from = $subscriptionmanager_email; $subject = "$agent_brand - Newsletter Subscription"; //begin of HTML message $message = "Thank you for subscribing to $agent_brand Newsletter. Your Email ID $EMAIL will be stored confidentiality and we will update you with our future promotions. \n Have a nice day !\n\n -------------------------------------------------- NOTE : Message was auto-generated and intended to $EMAIL and was sent by $from through 'Newsletter Subscription' at $agent_web.\n-------------------------------------------------- $agent_name $agent_address . Telephone : $agent_phone Fax : $agent_fax Email : $agent_email Web : $agent_web -------------------------------------- END OF MESSAGE "; //end of message /* $header = "MIME-Version: 1.0rn"; $header = "Content-type: text/html; charset=iso-8859-1rn"; $header = "From: $from\r\n"; $header .= "Cc: $from"; //$header .= "Cc: "; // SEND MAIL mail($to, $subject, $message, $header); //echo"$message"; */ // SMTP MAILER STARTS require_once "Mail.php"; $from = "$agent_name <$subscriptionmanager_email>"; $to = "$EMAIL"; $cc = "$agent_name <$subscriptionmanager_email>"; $smtphost = $smtp_host; $smtpusername = $smtp_username; $smtppassword = $smtp_password; $headers = array ('From' => $from,'To' => $to,'Cc' => $cc,'Subject' => $subject); $smtp = Mail::factory('smtp',array ('host' => $smtphost,'auth' => true,'username' => $smtpusername,'password' => $smtppassword)); $mail = $smtp->send($to, $headers, $message); if (PEAR::isError($mail)) {$msg_desc=$mail->getMessage();$msg_status=0;} else {$msg_status=1;} // SMTP MAILER ENDS /* // DO DB POSTING Q-SUBSCRIVE STARTS $doDBpost = mysql_query("SELECT id,cdbpry_emailpri FROM $cdbprmyhdr_tablename WHERE cdbpry_emailpri=\"$EMAIL\"",$db); if ($doDBpostrow = mysql_fetch_array($doDBpost)){do{}while ($doDBpostrow = mysql_fetch_array($doDBpost));}else{ $query="SELECT id FROM $cdbprmyhdr_tablename ORDER BY `id` DESC LIMIT 0,1"; $result = mysql_query ($query);$ret_id=mysql_fetch_array($result);$count = $ret_id[id];$prfx = $cdbprmyhdr_prefix;$prfxcon = "-";$countx= $count+1;$count_format=str_pad($countx, 6, "0", STR_PAD_LEFT);$code = $prfx.$prfxcon.$count_format; $cdbpry_type = "Q-SUBSCRIBE";$cdbpry_category = "WEB POST";$cdbpry_method = "USER DIRECT";$cdbpry_status = "SUBMITTED"; $doDBpost=mysql_query("INSERT INTO $cdbprmyhdr_tablename (`cdbpry_itemcode`,`cdbpry_type`,`cdbpry_category`,`cdbpry_method`,`cdbpry_status`,`cdbpry_emailpri`,`cdbpry_ctlocpage`,`cdbpry_datereg`,`cdbpry_ipreg`) VALUES ('$code','$cdbpry_type','$cdbpry_category','$cdbpry_method','$cdbpry_status','$EMAIL','$pagename','$sys_date','$ip')",$db);} // DO DB POSTING Q-SUBSCRIVE ENDS */ if($msg_status==1){ echo"
  Your email $EMAIL has been successfully registered to receive our Newsletters. ×
";}else{echo"
ERROR: $msg_desc
";} } } // END QUICK SUBSCRIBE PROCCESSING. MAILER WITH DB POSTING FEATURES ?>

TOUR PACKAGES

= \"$date_pw\" AND complete=\"1\" ORDER BY rand() LIMIT 0, $showrecord ",$db); while($therow = mysql_fetch_array($smallresult)){ $date_pq = mktime(0,0,0,date("m"),date("d"),date("Y")); $date_pw = date("Y-m-d", $date_pq); $extand_var1=$therow["tpack_itemcode"]; $saledateline=$therow["tpack_saleabledate"]; /* $tpack_feature1=$therow["tpack_feature1"]; $tpack_feature2=$therow["tpack_feature2"]; $tpack_feature3=$therow["tpack_feature3"]; $tpack_feature4=$therow["tpack_feature4"]; $tpack_feature5=$therow["tpack_feature5"]; $tpack_feature6=$therow["tpack_feature6"]; $season=$therow["tpack_season"]; */ if ($saledateline>=$date_pw){ echo "
"; if($therow["tpack_thumbnail"]==""){echo"\"";print($therow["tpack_title"]);";}else{echo"\"";print($therow["tpack_title"]);";} echo"

";printf($therow["tpack_route"]);echo" 
"; /* echo"
"; $query_1 = "SELECT alttour_currency,alttour_depdate,alttour_refitemcode,alttour_adttw FROM $allotmenttour_tablename WHERE alttour_refitemcode=\"$extand_var1\" AND alttour_saleend >= \"$date_pw\" ORDER BY alttour_adttw ASC LIMIT 0,1"; $result_1 = mysql_query($query_1);$is_null_1 = "true"; while($row_1 = mysql_fetch_array($result_1)){ $total1 = $row_1[alttour_adttw] * $therow[tpack_webtier]; $selling1 = round($total1); $alttour_depdate = $row_1[alttour_depdate]; $alttour_currency = $row_1[alttour_currency]; echo"from $alttour_currency $selling1"; $is_null_1 = "false"; if($is_null_1=="true"){echo" ";}} echo"
"; */ echo"
"; $query_1 = "SELECT alttour_depdate,alttour_refitemcode,alttour_adttw FROM $allotmenttour_tablename WHERE alttour_refitemcode=\"$extand_var1\" AND alttour_saleend >= \"$date_pw\" ORDER BY alttour_adttw ASC LIMIT 0,1"; $result_1 = mysql_query($query_1);$is_null_1 = "true"; while($row_1 = mysql_fetch_array($result_1)){ //$alttour_depdate = $row_1[alttour_depdate]; if($pub_cur=="MYR") { $total1 = $row_1[alttour_adttw] * $therow[tpack_webtier]; $selling1 = round($total1);$selling1 = number_format($selling1, 0, '.', ','); echo"from $pub_cur $selling1"; }else{ $query="SELECT * FROM $auxforexglobal_tablename WHERE tforex_cntrycode=\"$pub_loc\" AND tforex_currencycode=\"$pub_cur\" AND complete=\"1\" ORDER BY `tforex_cntrycode` ASC LIMIT 0,1";$result = mysql_query ($query); while($nt=mysql_fetch_array($result)) { $tforex_cntrycode=$nt[tforex_cntrycode]; $tforex_currencycode=$nt[tforex_currencycode]; $tforex_curposition=$nt[tforex_curposition]; $tforex_curvalue=$nt[tforex_curvalue]; if($tforex_curposition=="+") {$total1 = $row_1[alttour_adttw] / $tforex_curvalue * $therow[tpack_webtier];$selling1 = round($total1);$selling1 = number_format($selling1, 0, '.', ',');}else {$total1 = $row_1[alttour_adttw] * $tforex_curvalue * $therow[tpack_webtier]; $selling1 = round($total1); $selling1 = number_format($selling1, 2, '.', ',');} echo"from $pub_cur $selling1"; } } $is_null_1 = "false"; if($is_null_1=="true"){echo" ";}} echo"
"; echo"
"; echo"
";}else{}} if (!$extand_var1){echo"

 ";echo"UNAVAILABLE

No Tour Packages Available. Tour Packages NOT loaded at this moment. Please Try Again OR Contact Us $agent_phone

";} // TOUR PROMO STACKER STARTS HERE ?>

 MORE TOUR PACKAGES

";} ?>
 

TRANSFERS

= \"$date_pw\" AND complete=\"1\" ORDER BY rand() LIMIT 0, $showrecord ",$db); while($therow = mysql_fetch_array($smallresult)){ $date_pq = mktime(0,0,0,date("m"),date("d"),date("Y")); $date_pw = date("Y-m-d", $date_pq); $extand_trf=$therow["transfr_itemcode"]; $saledateline=$therow["transfr_saleabledate"]; if ($saledateline>=$date_pw){ echo "
"; if($therow["transfr_thumbnail"]==""){echo"\"";print($therow["transfr_title"]);";}else{echo"\"";print($therow["transfr_title"]);";} echo"
"; echo"

"; echo"
"; $query_1 = "SELECT * FROM $allotmenttransfer_tablename WHERE alttransfer_refitemcode=\"$extand_trf\" AND alttransfer_saleend >= \"$date_pw\" ORDER BY alttransfer_ratenormal ASC LIMIT 0,1"; $result_1 = mysql_query($query_1);$is_null_1 = "true"; while($row_1 = mysql_fetch_array($result_1)){ $optype = $row_1[alttransfer_optype]; if($pub_cur=="MYR") { $total1 = $row_1[alttransfer_ratenormal] * $therow[transfr_webtier]; $selling1 = round($total1);$selling1 = number_format($selling1, 0, '.', ','); echo"";if($optype=="CAR"){echo"  ";}else{echo"  ";}echo" $pub_cur $selling1"; }else{ $query="SELECT * FROM $auxforexglobal_tablename WHERE tforex_cntrycode=\"$pub_loc\" AND tforex_currencycode=\"$pub_cur\" AND complete=\"1\" ORDER BY `tforex_cntrycode` ASC LIMIT 0,1";$result = mysql_query ($query); while($nt=mysql_fetch_array($result)) { $tforex_cntrycode=$nt[tforex_cntrycode]; $tforex_currencycode=$nt[tforex_currencycode]; $tforex_curposition=$nt[tforex_curposition]; $tforex_curvalue=$nt[tforex_curvalue]; if($tforex_curposition=="+") {$total1 = $row_1[alttransfer_ratenormal] / $tforex_curvalue * $therow[transfr_webtier];$selling1 = round($total1);$selling1 = number_format($selling1, 0, '.', ',');}else {$total1 = $row_1[alttransfer_ratenormal] * $tforex_curvalue * $therow[transfr_webtier]; $selling1 = round($total1); $selling1 = number_format($selling1, 2, '.', ',');} echo"";if($optype=="CAR"){echo"  ";}else{echo"  ";}echo" $pub_cur $selling1"; } } $is_null_1 = "false"; if($is_null_1=="true"){echo" ";}} echo"
"; echo"
"; echo"
";}else{}} if (!$extand_trf){echo"

 ";echo"UNAVAILABLE

No Transfer Rates Available. Rates NOT loaded at this moment. Please Try Again OR Contact Us $agent_phone

";} // TOUR PROMO STACKER STARTS HERE ?>

 MORE TRANSFERS

";} ?>
 

SIGHTSEEING TOURS & ATTRACTION TICKETS

= \"$date_pw\" AND complete=\"1\" ORDER BY rand() LIMIT 0, $showrecord ",$db); while($therow = mysql_fetch_array($smallresult)){ $date_pq = mktime(0,0,0,date("m"),date("d"),date("Y")); $date_pw = date("Y-m-d", $date_pq); $extand_sight=$therow["torate_itemcode"]; $saledateline=$therow["torate_saleabledate"]; if ($saledateline>=$date_pw){ echo "
"; if($therow["torate_thumbnail"]==""){echo"\"";print($therow["torate_title"]);";}else{echo"\"";print($therow["torate_title"]);";} echo"
"; echo"

"; echo"
"; $query_1 = "SELECT altdaytour_ratechild,altdaytour_refitemcode,altdaytour_rateadult FROM $allotmenttorate_tablename WHERE altdaytour_refitemcode=\"$extand_sight\" AND altdaytour_saleend >= \"$date_pw\" ORDER BY altdaytour_rateadult ASC LIMIT 0,1"; $result_1 = mysql_query($query_1);$is_null_1 = "true"; while($row_1 = mysql_fetch_array($result_1)){ $roptype = $row_1[altdaytour_optype]; if($pub_cur=="MYR") { $total1 = $row_1[altdaytour_rateadult] * $therow[torate_webtier]; $selling1 = round($total1);$selling1 = number_format($selling1, 0, '.', ','); $total2 = $row_1[altdaytour_ratechild] * $therow[torate_webtier]; $selling2 = round($total2);$selling2 = number_format($selling2, 0, '.', ','); echo"   $pub_cur $selling1      $pub_cur $selling2 "; }else{ $query="SELECT * FROM $auxforexglobal_tablename WHERE tforex_cntrycode=\"$pub_loc\" AND tforex_currencycode=\"$pub_cur\" AND complete=\"1\" ORDER BY `tforex_cntrycode` ASC LIMIT 0,1";$result = mysql_query ($query); while($nt=mysql_fetch_array($result)) { $tforex_cntrycode=$nt[tforex_cntrycode]; $tforex_currencycode=$nt[tforex_currencycode]; $tforex_curposition=$nt[tforex_curposition]; $tforex_curvalue=$nt[tforex_curvalue]; if($tforex_curposition=="+") {$total1 = $row_1[altdaytour_rateadult] / $tforex_curvalue * $therow[torate_webtier];$selling1 = round($total1);$selling1 = number_format($selling1, 0, '.', ',');$total2 = $row_1[altdaytour_ratechild] / $tforex_curvalue * $therow[torate_webtier];$selling2 = round($total2);$selling2 = number_format($selling2, 0, '.', ',');}else {$total1 = $row_1[altdaytour_rateadult] * $tforex_curvalue * $therow[torate_webtier];$selling1 = round($total1); $selling1 = number_format($selling1, 2, '.', ',');$total2 = $row_1[altdaytour_ratechild] * $tforex_curvalue * $therow[torate_webtier];$selling2 = round($total2);$selling2 = number_format($selling2, 2, '.', ',');} echo"   $pub_cur $selling1      $pub_cur $selling2 "; } } $is_null_1 = "false"; if($is_null_1=="true"){echo" ";}} echo"
"; echo"
"; echo"
";}else{}} //if (!$extand_sight){echo"

 ";echo"UNAVAILABLE

No Sightseeing Rates Available. Rates NOT loaded at this moment. Please Try Again OR Contact Us $agent_phone

";} if (!$extand_sight){echo"

 No Sightseeing Rate or Tickets available at the moment. Please Try Again OR Contact Us $agent_phone

";} // SIGHTSEEING STACKER STARTS HERE ?>

 MORE ACTIVITIES

";} ?>

 

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

\"Asian

\"Select

Select Your Location..

  Select Location
We will display our best Offers & Deals for your.
";} ?>