<?
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년 전
우편번호 연결이 안된다는 말씀이 무슨 말씀이신지..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 630 | 19년 전 | 2364 | ||
| 629 |
|
19년 전 | 2029 | |
| 628 |
|
19년 전 | 3142 | |
| 627 |
|
19년 전 | 2047 | |
| 626 |
|
19년 전 | 2074 | |
| 625 |
|
19년 전 | 1735 | |
| 624 |
|
19년 전 | 2244 | |
| 623 | 19년 전 | 2214 | ||
| 622 |
|
19년 전 | 2522 | |
| 621 |
|
19년 전 | 2929 | |
| 620 |
|
19년 전 | 2423 | |
| 619 | 19년 전 | 2493 | ||
| 618 | 19년 전 | 3521 | ||
| 617 |
|
19년 전 | 3243 | |
| 616 |
|
19년 전 | 3235 | |
| 615 |
|
19년 전 | 3060 | |
| 614 |
|
19년 전 | 2056 | |
| 613 |
|
19년 전 | 2406 | |
| 612 |
|
19년 전 | 2256 | |
| 611 |
|
19년 전 | 2097 | |
| 610 |
|
19년 전 | 2532 | |
| 609 |
|
19년 전 | 2439 | |
| 608 |
|
19년 전 | 2829 | |
| 607 | 19년 전 | 2204 | ||
| 606 | 19년 전 | 3547 | ||
| 605 | 19년 전 | 2008 | ||
| 604 | 19년 전 | 2630 | ||
| 603 | 19년 전 | 1630 | ||
| 602 |
|
19년 전 | 2851 | |
| 601 | 19년 전 | 3082 | ||
| 600 |
|
19년 전 | 2160 | |
| 599 | 19년 전 | 2013 | ||
| 598 | 19년 전 | 2498 | ||
| 597 | 19년 전 | 2409 | ||
| 596 |
|
19년 전 | 3086 | |
| 595 |
|
19년 전 | 6775 | |
| 594 | 19년 전 | 2720 | ||
| 593 | 19년 전 | 3196 | ||
| 592 |
|
19년 전 | 3099 | |
| 591 |
|
19년 전 | 1948 | |
| 590 | 19년 전 | 3373 | ||
| 589 | 19년 전 | 2226 | ||
| 588 |
|
19년 전 | 2713 | |
| 587 | 19년 전 | 2355 | ||
| 586 |
|
19년 전 | 4377 | |
| 585 | 19년 전 | 2511 | ||
| 584 | 19년 전 | 2773 | ||
| 583 |
|
19년 전 | 3539 | |
| 582 |
|
19년 전 | 3730 | |
| 581 |
|
19년 전 | 3268 | |
| 580 | 19년 전 | 2498 | ||
| 579 | 19년 전 | 3105 | ||
| 578 | 19년 전 | 4015 | ||
| 577 | 19년 전 | 3841 | ||
| 576 | 19년 전 | 1786 | ||
| 575 |
|
19년 전 | 2241 | |
| 574 |
|
19년 전 | 5417 | |
| 573 | 19년 전 | 6748 | ||
| 572 | 19년 전 | 2589 | ||
| 571 | 19년 전 | 2122 | ||
| 570 | 19년 전 | 2615 | ||
| 569 | 19년 전 | 3328 | ||
| 568 | 19년 전 | 3554 | ||
| 567 | 19년 전 | 2991 | ||
| 566 | 19년 전 | 2612 | ||
| 565 |
|
19년 전 | 4738 | |
| 564 |
|
19년 전 | 6748 | |
| 563 |
|
19년 전 | 5022 | |
| 562 |
|
19년 전 | 5966 | |
| 561 |
|
19년 전 | 2717 | |
| 560 |
|
19년 전 | 2577 | |
| 559 |
|
19년 전 | 2244 | |
| 558 |
|
19년 전 | 2316 | |
| 557 | 19년 전 | 4599 | ||
| 556 |
|
19년 전 | 4681 | |
| 555 | 19년 전 | 2520 | ||
| 554 | 19년 전 | 2189 | ||
| 553 | 19년 전 | 2534 | ||
| 552 |
|
19년 전 | 3184 | |
| 551 | 19년 전 | 2953 | ||
| 550 |
|
19년 전 | 1907 | |
| 549 |
|
19년 전 | 1979 | |
| 548 |
|
19년 전 | 3160 | |
| 547 |
|
19년 전 | 2362 | |
| 546 |
|
19년 전 | 3635 | |
| 545 |
|
19년 전 | 2572 | |
| 544 |
|
19년 전 | 1871 | |
| 543 |
|
19년 전 | 2469 | |
| 542 |
|
19년 전 | 1741 | |
| 541 |
|
19년 전 | 1422 | |
| 540 |
|
19년 전 | 1563 | |
| 539 |
|
19년 전 | 1816 | |
| 538 |
|
19년 전 | 1604 | |
| 537 |
|
19년 전 | 1807 | |
| 536 |
|
19년 전 | 1574 | |
| 535 |
|
19년 전 | 1965 | |
| 534 |
|
19년 전 | 1856 | |
| 533 |
|
19년 전 | 1468 | |
| 532 |
|
19년 전 | 1455 | |
| 531 |
|
19년 전 | 1377 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기