<?
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년 전
우편번호 연결이 안된다는 말씀이 무슨 말씀이신지..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2730 | 15년 전 | 641 | ||
| 2729 | 15년 전 | 1393 | ||
| 2728 |
|
15년 전 | 928 | |
| 2727 |
용다섯마리
|
15년 전 | 679 | |
| 2726 |
니콜크더만
|
15년 전 | 759 | |
| 2725 |
Insungbyun
|
15년 전 | 828 | |
| 2724 | 15년 전 | 1224 | ||
| 2723 | 15년 전 | 721 | ||
| 2722 | 15년 전 | 729 | ||
| 2721 | 15년 전 | 944 | ||
| 2720 | 15년 전 | 681 | ||
| 2719 |
|
15년 전 | 1421 | |
| 2718 | 15년 전 | 1050 | ||
| 2717 |
디이자이너
|
15년 전 | 2869 | |
| 2716 |
|
15년 전 | 1360 | |
| 2715 | 15년 전 | 646 | ||
| 2714 |
고추장불고기
|
15년 전 | 615 | |
| 2713 | 15년 전 | 768 | ||
| 2712 | 15년 전 | 1257 | ||
| 2711 | 15년 전 | 1187 | ||
| 2710 | 15년 전 | 665 | ||
| 2709 | 15년 전 | 792 | ||
| 2708 |
TWM소프트
|
15년 전 | 980 | |
| 2707 |
|
15년 전 | 1213 | |
| 2706 |
|
15년 전 | 1014 | |
| 2705 | 15년 전 | 993 | ||
| 2704 | 15년 전 | 1187 | ||
| 2703 |
|
15년 전 | 663 | |
| 2702 |
|
15년 전 | 646 | |
| 2701 | 15년 전 | 1055 | ||
| 2700 | 15년 전 | 641 | ||
| 2699 | 15년 전 | 1741 | ||
| 2698 | 15년 전 | 2238 | ||
| 2697 |
|
15년 전 | 809 | |
| 2696 | 15년 전 | 815 | ||
| 2695 | 15년 전 | 1472 | ||
| 2694 |
|
15년 전 | 877 | |
| 2693 | 15년 전 | 975 | ||
| 2692 | 15년 전 | 1382 | ||
| 2691 |
Homepix
|
15년 전 | 1538 | |
| 2690 | 15년 전 | 1645 | ||
| 2689 | 15년 전 | 1083 | ||
| 2688 |
sooram
|
15년 전 | 1756 | |
| 2687 |
terrorboys
|
15년 전 | 1562 | |
| 2686 |
진정한승리
|
15년 전 | 798 | |
| 2685 |
|
15년 전 | 1771 | |
| 2684 |
진정한승리
|
15년 전 | 917 | |
| 2683 |
dannykim
|
15년 전 | 775 | |
| 2682 | 15년 전 | 822 | ||
| 2681 | 15년 전 | 775 | ||
| 2680 | 15년 전 | 943 | ||
| 2679 | 15년 전 | 956 | ||
| 2678 | 15년 전 | 1171 | ||
| 2677 |
|
15년 전 | 3185 | |
| 2676 | 15년 전 | 1755 | ||
| 2675 | 15년 전 | 889 | ||
| 2674 | 15년 전 | 1585 | ||
| 2673 | 15년 전 | 762 | ||
| 2672 | 15년 전 | 895 | ||
| 2671 |
다케미카코
|
15년 전 | 1857 | |
| 2670 | 15년 전 | 1811 | ||
| 2669 | 15년 전 | 851 | ||
| 2668 |
terrorboys
|
15년 전 | 1113 | |
| 2667 | 15년 전 | 1069 | ||
| 2666 | 15년 전 | 1030 | ||
| 2665 | 15년 전 | 1220 | ||
| 2664 | 15년 전 | 950 | ||
| 2663 | 15년 전 | 976 | ||
| 2662 | 15년 전 | 897 | ||
| 2661 | 15년 전 | 1028 | ||
| 2660 | 15년 전 | 945 | ||
| 2659 | 15년 전 | 1539 | ||
| 2658 | 15년 전 | 777 | ||
| 2657 | 15년 전 | 748 | ||
| 2656 | 15년 전 | 1385 | ||
| 2655 | 15년 전 | 1283 | ||
| 2654 | 15년 전 | 1230 | ||
| 2653 | 15년 전 | 801 | ||
| 2652 | 15년 전 | 1590 | ||
| 2651 | 15년 전 | 976 | ||
| 2650 | 15년 전 | 1627 | ||
| 2649 |
windday
|
15년 전 | 1978 | |
| 2648 | 15년 전 | 1403 | ||
| 2647 | 15년 전 | 7604 | ||
| 2646 | 15년 전 | 1035 | ||
| 2645 | 15년 전 | 1249 | ||
| 2644 | 15년 전 | 980 | ||
| 2643 | 15년 전 | 1197 | ||
| 2642 | 15년 전 | 976 | ||
| 2641 | 15년 전 | 1188 | ||
| 2640 |
프리랜서개발자
|
15년 전 | 918 | |
| 2639 | 15년 전 | 2007 | ||
| 2638 | 15년 전 | 1019 | ||
| 2637 | 15년 전 | 927 | ||
| 2636 | 15년 전 | 1419 | ||
| 2635 | 15년 전 | 1314 | ||
| 2634 | 15년 전 | 1032 | ||
| 2633 | 15년 전 | 911 | ||
| 2632 | 15년 전 | 947 | ||
| 2631 | 15년 전 | 1231 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기