<?
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년 전
우편번호 연결이 안된다는 말씀이 무슨 말씀이신지..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7630 | 10년 전 | 682 | ||
| 7629 |
|
10년 전 | 2448 | |
| 7628 | 10년 전 | 823 | ||
| 7627 |
|
10년 전 | 1055 | |
| 7626 |
|
10년 전 | 1812 | |
| 7625 | 10년 전 | 744 | ||
| 7624 | 10년 전 | 753 | ||
| 7623 |
|
10년 전 | 3146 | |
| 7622 | 10년 전 | 759 | ||
| 7621 |
leeleeleelee
|
10년 전 | 611 | |
| 7620 | 10년 전 | 562 | ||
| 7619 | 10년 전 | 528 | ||
| 7618 | 10년 전 | 1064 | ||
| 7617 | 10년 전 | 745 | ||
| 7616 | 10년 전 | 683 | ||
| 7615 | 10년 전 | 746 | ||
| 7614 | 10년 전 | 1290 | ||
| 7613 |
|
10년 전 | 2105 | |
| 7612 | 10년 전 | 1189 | ||
| 7611 | 10년 전 | 1450 | ||
| 7610 |
|
10년 전 | 1926 | |
| 7609 |
|
10년 전 | 1384 | |
| 7608 |
mwdkim
|
10년 전 | 1157 | |
| 7607 |
|
10년 전 | 1085 | |
| 7606 |
mwdkim
|
10년 전 | 3967 | |
| 7605 | 10년 전 | 714 | ||
| 7604 | 10년 전 | 1051 | ||
| 7603 | 10년 전 | 1671 | ||
| 7602 |
|
10년 전 | 1102 | |
| 7601 |
AniNest
|
10년 전 | 2819 | |
| 7600 |
port443
|
10년 전 | 1063 | |
| 7599 | 10년 전 | 970 | ||
| 7598 | 10년 전 | 1043 | ||
| 7597 | 10년 전 | 4594 | ||
| 7596 |
SeungYeon
|
10년 전 | 915 | |
| 7595 |
untitled
|
10년 전 | 2464 | |
| 7594 |
프로그래머7
|
10년 전 | 1755 | |
| 7593 |
untitled
|
10년 전 | 2393 | |
| 7592 |
untitled
|
10년 전 | 1960 | |
| 7591 |
untitled
|
10년 전 | 2699 | |
| 7590 |
아리마2001
|
10년 전 | 879 | |
| 7589 | 10년 전 | 1131 | ||
| 7588 |
|
10년 전 | 2945 | |
| 7587 | 10년 전 | 1327 | ||
| 7586 | 10년 전 | 692 | ||
| 7585 | 10년 전 | 1727 | ||
| 7584 | 10년 전 | 1429 | ||
| 7583 |
leeleeleelee
|
10년 전 | 1194 | |
| 7582 |
|
10년 전 | 1159 | |
| 7581 | 10년 전 | 1386 | ||
| 7580 | 10년 전 | 1040 | ||
| 7579 |
|
10년 전 | 630 | |
| 7578 | 10년 전 | 1448 | ||
| 7577 |
|
10년 전 | 1894 | |
| 7576 | 10년 전 | 1402 | ||
| 7575 |
멋진남자임
|
10년 전 | 1488 | |
| 7574 | 10년 전 | 2151 | ||
| 7573 | 10년 전 | 3288 | ||
| 7572 | 10년 전 | 783 | ||
| 7571 |
|
10년 전 | 801 | |
| 7570 |
|
10년 전 | 1351 | |
| 7569 | 10년 전 | 1571 | ||
| 7568 |
this1mg
|
10년 전 | 1072 | |
| 7567 |
|
10년 전 | 789 | |
| 7566 | 10년 전 | 936 | ||
| 7565 |
Angel하늘
|
10년 전 | 1037 | |
| 7564 |
seoldi
|
10년 전 | 1283 | |
| 7563 |
|
10년 전 | 1420 | |
| 7562 |
멋진남자임
|
10년 전 | 2122 | |
| 7561 | 10년 전 | 746 | ||
| 7560 |
leeleeleelee
|
10년 전 | 938 | |
| 7559 | 10년 전 | 5076 | ||
| 7558 |
RinaP
|
10년 전 | 813 | |
| 7557 |
|
10년 전 | 1274 | |
| 7556 | 10년 전 | 1217 | ||
| 7555 |
hyohyojj1234
|
10년 전 | 1687 | |
| 7554 | 10년 전 | 1114 | ||
| 7553 |
senseme
|
10년 전 | 1364 | |
| 7552 |
ehdltdoit
|
10년 전 | 1459 | |
| 7551 |
|
10년 전 | 1846 | |
| 7550 |
leeleeleelee
|
10년 전 | 1620 | |
| 7549 | 10년 전 | 2451 | ||
| 7548 | 10년 전 | 1857 | ||
| 7547 |
멋진남자임
|
10년 전 | 1982 | |
| 7546 | 10년 전 | 1024 | ||
| 7545 |
ILMare1003
|
10년 전 | 1317 | |
| 7544 |
|
10년 전 | 1272 | |
| 7543 | 10년 전 | 907 | ||
| 7542 | 10년 전 | 683 | ||
| 7541 |
울라라라우
|
10년 전 | 888 | |
| 7540 | 10년 전 | 1617 | ||
| 7539 | 10년 전 | 962 | ||
| 7538 |
|
10년 전 | 1849 | |
| 7537 | 10년 전 | 3637 | ||
| 7536 |
Gaumi
|
10년 전 | 1449 | |
| 7535 |
프로그램은어려워
|
10년 전 | 1300 | |
| 7534 |
senseme
|
10년 전 | 1224 | |
| 7533 | 10년 전 | 1225 | ||
| 7532 | 10년 전 | 895 | ||
| 7531 | 10년 전 | 2091 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기