include("../dbconnect.php"); ?> //echo $_REQUEST["kubun"]; if(!$_REQUEST["kubun"] and $_REQUEST["bukkendata_id"]){ $result = mysql_query("select * from bukkendata where bukkendata_id = '".$_REQUEST["bukkendata_id"]."'"); if($rows = mysql_num_rows($result)){ $arr1 = mysql_fetch_array($result); $_REQUEST["kubun"] = $arr1["kubun1"]; } } //dc.conf参照 //区分から接続テーブル名を取得 for($cnt = 0;$cnt < count($arr);$cnt++){ if(strstr($arr[$cnt],$_REQUEST["kubun"].":")){ $item = explode(":",$arr[$cnt]); $dt = $item[3]; } } if(!$dt){ echo "物件データが見つかりませんでした。"; } if($_REQUEST["kubun"] and $_REQUEST["bukkendata_id"]){ //echo "select * from ".$dt." where bukkendata_id = '".$_REQUEST["bukkendata_id"]."'"; $result = mysql_query("select * from ".$dt." where bukkendata_id = '".$_REQUEST["bukkendata_id"]."'"); if($rows = mysql_num_rows($result)){ $arr = mysql_fetch_array($result); $_REQUEST["jiscode"] = $arr["jiscode"]; $_REQUEST["address1"] = $arr["address1"]; $_REQUEST["vender_id"] = $arr["vender_id"]; }else{ exit; } }else{ @include("../header.php"); echo "
"; @include("../footer.php"); exit; } $google = "0"; if($arr["lat"] and $arr["lng"]){ $google = "1"; } ?> include_once("../php/log.inc"); ?>