require_once("MyDB.class.php");
require_once("../getDataByDate.php");
$mysql_tpe = new MyDB("mysql","taipei","travel");
?>
//判斷travelgo有沒有符合出團類型為團體的數量
$res=$mysql_tpe->query("SELECT travelgoout,ttype FROM travelgo,travelmas WHERE travelgo.travelcode = travelmas.travelcode and travelgo.travelgosdate > '". Date("Y-m-d") ."' and travelgo.tdeadline='1' and travelgo.b2conline='1' and (travelgo.countryid='014' or travelgo.countryid='016') and travelgo.showfull='N' and travelgo.okcount > travelgo.resultcount and travelmas.ttype='1' order by travelgono");
while($rec_tour=$mysql_tpe->fetchRow($res)) {
$arr=split(",",$rec_tour['travelgoout']);
for($i=0;$ifreeResult($res);
?>