Only in postal: index.php~
diff -ur postal-php3/select.php postal/select.php
--- postal-php3/select.php 2004-04-08 13:30:52.000000000 +0900
+++ postal/select.php 2002-07-15 14:31:24.000000000 +0900
@@ -1,4 +1,13 @@
+$oldcode = $_GET['oldcode'];
+$newcode = $_GET['newcode'];
+$hostname = $_GET['hostname'];
+$dbname = $_GET['dbname'];
+$port = $_GET['port'];
+$pid = $_GET['pid'];
+$sqlprint = $_GET['sqlprint'];
+$prefecture = $_GET['prefecture'];
+
if ($auth) {
/* ユーザ認証を行う */
@@ -23,7 +32,8 @@
}
}
} else {
- $con = pg_connect("$hostname",$port,"","",$dbname);
+# $con = pg_connect("$hostname",$port,"","",$dbname);
+ $con = pg_connect("","","","",$dbname);
if (!$con) {
print("$hostname のデータベース $dbname (ポート番号 $port)に接続出来ませんでした。");
exit;
@@ -65,7 +75,7 @@
-include "pref.php3"; /* 都道府県データを取り込む */
+include "pref.php"; /* 都道府県データを取り込む */
/*
* 問い合わせ作成用の関数
@@ -186,7 +196,8 @@
} else {
print("" . $str . " | \n");
}
- print("" . $pref_tbl[pg_result($rtn,$i,2)] . " | \n");
+ $p = pg_result($rtn,$i,2);
+ print("" . $p .' '. $pref_tbl[$p] . " | \n");
print("" . pg_result($rtn,$i,3) . " | \n");
print("" . pg_result($rtn,$i,4) . " | \n");
print("" . pg_result($rtn,$i,5) . " | \n");
Only in postal: select.php3~
Only in postal: select.php~