<?
include_once("./_common.php");
/* 기존의 DB에서 불러오는 방식
if ($addr1)
{
$zipfile = file("./zip.db");
$search_count = 0;
while ($zipcode = each($zipfile))
{
if(strstr(substr($zipcode[1],9,512), $addr1))
{
$list[$search_count][zip1] = substr($zipcode[1],0,3);
$list[$search_count][zip2] = substr($zipcode[1],4,3);
$addr = explode(" ", substr($zipcode[1],8));
if ($addr[sizeof($addr)-1])
{
$list[$search_count][addr] = str_replace($addr[sizeof($addr)-1], "", substr($zipcode[1],8));
$list[$search_count][bunji] = trim($addr[sizeof($addr)-1]);
}
else
$list[$search_count][addr] = substr($zipcode[1],8);
$list[$search_count][encode_addr] = urlencode($list[$search_count][addr]);
$search_count++;
}
}
if (!$search_count) alert("찾으시는 주소가 없습니다.");
}
*/
if ($addr1)
{
//$sql = " select * from zipcode where zp_dong like '%$addr1%' order by zp_sido, zp_gugun, zp_dong ";
$sql = " select * from $g4[zipcode] where zp_dong like '%$addr1%' order by zp_sido, zp_gugun, zp_dong ";
echo $sql;
//echo '<xmp>';
//print_r($g4);
//echo '</xmp>';
$result = mysql_query($sql);
$search_count = 0;
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$list[$i][zip1] = substr($row[zp_code], 0, 3);
$list[$i][zip2] = substr($row[zp_code], 3, 3);
$list[$i][addr] = "$row[zp_sido] $row[zp_gugun] $row[zp_dong]";
$list[$i][bunji] = $row[zp_bunji];
$list[$i][encode_addr] = urlencode($list[$i][addr1]);
$search_count++;
}
if (!$search_count)
alert("찾으시는 주소가 없습니다.");
}
$g4[title] = "우편번호 검색";
include_once("$g4[path]/ahead.sub.php");
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/zip.skin.php");
include_once("$g4[path]/tail.sub.php");
?>
include_once("./_common.php");
/* 기존의 DB에서 불러오는 방식
if ($addr1)
{
$zipfile = file("./zip.db");
$search_count = 0;
while ($zipcode = each($zipfile))
{
if(strstr(substr($zipcode[1],9,512), $addr1))
{
$list[$search_count][zip1] = substr($zipcode[1],0,3);
$list[$search_count][zip2] = substr($zipcode[1],4,3);
$addr = explode(" ", substr($zipcode[1],8));
if ($addr[sizeof($addr)-1])
{
$list[$search_count][addr] = str_replace($addr[sizeof($addr)-1], "", substr($zipcode[1],8));
$list[$search_count][bunji] = trim($addr[sizeof($addr)-1]);
}
else
$list[$search_count][addr] = substr($zipcode[1],8);
$list[$search_count][encode_addr] = urlencode($list[$search_count][addr]);
$search_count++;
}
}
if (!$search_count) alert("찾으시는 주소가 없습니다.");
}
*/
if ($addr1)
{
//$sql = " select * from zipcode where zp_dong like '%$addr1%' order by zp_sido, zp_gugun, zp_dong ";
$sql = " select * from $g4[zipcode] where zp_dong like '%$addr1%' order by zp_sido, zp_gugun, zp_dong ";
echo $sql;
//echo '<xmp>';
//print_r($g4);
//echo '</xmp>';
$result = mysql_query($sql);
$search_count = 0;
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$list[$i][zip1] = substr($row[zp_code], 0, 3);
$list[$i][zip2] = substr($row[zp_code], 3, 3);
$list[$i][addr] = "$row[zp_sido] $row[zp_gugun] $row[zp_dong]";
$list[$i][bunji] = $row[zp_bunji];
$list[$i][encode_addr] = urlencode($list[$i][addr1]);
$search_count++;
}
if (!$search_count)
alert("찾으시는 주소가 없습니다.");
}
$g4[title] = "우편번호 검색";
include_once("$g4[path]/ahead.sub.php");
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/zip.skin.php");
include_once("$g4[path]/tail.sub.php");
?>
댓글 3개
dannykim
15년 전
도와주세요~~~
DiZiNOr
15년 전
이렇게만 적어두고 무슨현상인지 알아야 봐드리죠 ;;
l2zeo
15년 전
우편번호 연결이 안된다는 말씀이 무슨 말씀이신지..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2330 | 16년 전 | 5072 | ||
| 2329 | 16년 전 | 2307 | ||
| 2328 | 16년 전 | 3404 | ||
| 2327 | 16년 전 | 2641 | ||
| 2326 | 16년 전 | 1562 | ||
| 2325 | 16년 전 | 5362 | ||
| 2324 | 16년 전 | 2474 | ||
| 2323 | 16년 전 | 5969 | ||
| 2322 | 16년 전 | 1942 | ||
| 2321 | 16년 전 | 4019 | ||
| 2320 | 16년 전 | 3033 | ||
| 2319 |
|
16년 전 | 2221 | |
| 2318 |
데니크레인
|
16년 전 | 2238 | |
| 2317 | 16년 전 | 4424 | ||
| 2316 | 16년 전 | 3311 | ||
| 2315 | 16년 전 | 2837 | ||
| 2314 | 16년 전 | 2966 | ||
| 2313 | 16년 전 | 2080 | ||
| 2312 | 16년 전 | 1769 | ||
| 2311 | 16년 전 | 1680 | ||
| 2310 | 16년 전 | 1399 | ||
| 2309 | 16년 전 | 1674 | ||
| 2308 | 16년 전 | 1903 | ||
| 2307 | 16년 전 | 1603 | ||
| 2306 |
|
16년 전 | 4854 | |
| 2305 | 16년 전 | 3830 | ||
| 2304 | 16년 전 | 1790 | ||
| 2303 | 16년 전 | 1534 | ||
| 2302 | 16년 전 | 2274 | ||
| 2301 | 16년 전 | 4537 | ||
| 2300 | 16년 전 | 3569 | ||
| 2299 | 16년 전 | 2590 | ||
| 2298 | 16년 전 | 4364 | ||
| 2297 | 16년 전 | 3232 | ||
| 2296 | 16년 전 | 1374 | ||
| 2295 |
|
16년 전 | 1390 | |
| 2294 |
|
16년 전 | 2050 | |
| 2293 | 16년 전 | 1894 | ||
| 2292 | 16년 전 | 2567 | ||
| 2291 | 16년 전 | 2245 | ||
| 2290 | 16년 전 | 1377 | ||
| 2289 | 16년 전 | 4394 | ||
| 2288 | 16년 전 | 1480 | ||
| 2287 | 16년 전 | 1794 | ||
| 2286 | 16년 전 | 2205 | ||
| 2285 |
|
16년 전 | 3849 | |
| 2284 |
|
16년 전 | 2739 | |
| 2283 |
|
16년 전 | 1497 | |
| 2282 | 16년 전 | 4028 | ||
| 2281 |
|
16년 전 | 1406 | |
| 2280 | 16년 전 | 1593 | ||
| 2279 | 16년 전 | 1254 | ||
| 2278 | 16년 전 | 1715 | ||
| 2277 | 16년 전 | 1619 | ||
| 2276 | 16년 전 | 1629 | ||
| 2275 | 16년 전 | 1428 | ||
| 2274 | 16년 전 | 2189 | ||
| 2273 | 16년 전 | 1842 | ||
| 2272 |
|
16년 전 | 1990 | |
| 2271 | 16년 전 | 2199 | ||
| 2270 |
a1system
|
16년 전 | 1490 | |
| 2269 | 16년 전 | 2319 | ||
| 2268 | 16년 전 | 2264 | ||
| 2267 | 16년 전 | 4543 | ||
| 2266 |
|
16년 전 | 1299 | |
| 2265 | 16년 전 | 1057 | ||
| 2264 |
잠자리똥꾸멍
|
16년 전 | 2013 | |
| 2263 |
태양의서쪽
|
16년 전 | 1982 | |
| 2262 |
태양의서쪽
|
16년 전 | 1523 | |
| 2261 |
태양의서쪽
|
16년 전 | 2048 | |
| 2260 |
|
16년 전 | 2279 | |
| 2259 | 16년 전 | 1391 | ||
| 2258 | 16년 전 | 1741 | ||
| 2257 | 16년 전 | 1922 | ||
| 2256 | 16년 전 | 1015 | ||
| 2255 | 16년 전 | 1692 | ||
| 2254 | 16년 전 | 1409 | ||
| 2253 | 16년 전 | 1925 | ||
| 2252 |
freedays
|
16년 전 | 1329 | |
| 2251 | 16년 전 | 2204 | ||
| 2250 | 16년 전 | 1883 | ||
| 2249 | 16년 전 | 5873 | ||
| 2248 | 16년 전 | 1913 | ||
| 2247 | 16년 전 | 3687 | ||
| 2246 | 16년 전 | 1468 | ||
| 2245 |
|
16년 전 | 1762 | |
| 2244 |
|
16년 전 | 2077 | |
| 2243 | 16년 전 | 2614 | ||
| 2242 | 16년 전 | 2311 | ||
| 2241 | 16년 전 | 2760 | ||
| 2240 | 16년 전 | 3000 | ||
| 2239 | 16년 전 | 3031 | ||
| 2238 |
|
16년 전 | 1828 | |
| 2237 |
|
16년 전 | 1542 | |
| 2236 |
|
16년 전 | 1419 | |
| 2235 | 16년 전 | 1730 | ||
| 2234 | 16년 전 | 1213 | ||
| 2233 | 16년 전 | 1963 | ||
| 2232 |
|
16년 전 | 1737 | |
| 2231 | 16년 전 | 1610 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기