<?
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년 전
우편번호 연결이 안된다는 말씀이 무슨 말씀이신지..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 364 | ||
| 7929 | 9년 전 | 257 | ||
| 7928 | 9년 전 | 366 | ||
| 7927 | 9년 전 | 294 | ||
| 7926 | 9년 전 | 641 | ||
| 7925 | 9년 전 | 310 | ||
| 7924 | 9년 전 | 280 | ||
| 7923 | 9년 전 | 319 | ||
| 7922 | 9년 전 | 339 | ||
| 7921 | 9년 전 | 371 | ||
| 7920 | 9년 전 | 293 | ||
| 7919 | 9년 전 | 309 | ||
| 7918 | 9년 전 | 473 | ||
| 7917 | 9년 전 | 311 | ||
| 7916 | 9년 전 | 378 | ||
| 7915 | 9년 전 | 363 | ||
| 7914 | 9년 전 | 379 | ||
| 7913 | 9년 전 | 500 | ||
| 7912 | 9년 전 | 373 | ||
| 7911 | 9년 전 | 328 | ||
| 7910 | 9년 전 | 359 | ||
| 7909 | 9년 전 | 469 | ||
| 7908 | 9년 전 | 365 | ||
| 7907 | 9년 전 | 317 | ||
| 7906 | 9년 전 | 332 | ||
| 7905 | 9년 전 | 326 | ||
| 7904 | 9년 전 | 292 | ||
| 7903 | 9년 전 | 289 | ||
| 7902 | 9년 전 | 509 | ||
| 7901 |
|
9년 전 | 714 | |
| 7900 | 9년 전 | 536 | ||
| 7899 | 9년 전 | 343 | ||
| 7898 | 9년 전 | 337 | ||
| 7897 | 9년 전 | 294 | ||
| 7896 | 9년 전 | 313 | ||
| 7895 | 9년 전 | 422 | ||
| 7894 | 9년 전 | 346 | ||
| 7893 | 9년 전 | 275 | ||
| 7892 | 9년 전 | 322 | ||
| 7891 | 9년 전 | 706 | ||
| 7890 | 9년 전 | 1169 | ||
| 7889 | 9년 전 | 729 | ||
| 7888 |
limsy1987
|
9년 전 | 522 | |
| 7887 | 9년 전 | 499 | ||
| 7886 | 9년 전 | 379 | ||
| 7885 | 9년 전 | 358 | ||
| 7884 | 9년 전 | 365 | ||
| 7883 | 9년 전 | 343 | ||
| 7882 | 9년 전 | 359 | ||
| 7881 | 9년 전 | 383 | ||
| 7880 | 9년 전 | 513 | ||
| 7879 | 9년 전 | 410 | ||
| 7878 | 9년 전 | 1153 | ||
| 7877 | 9년 전 | 705 | ||
| 7876 | 9년 전 | 432 | ||
| 7875 | 9년 전 | 505 | ||
| 7874 |
|
9년 전 | 775 | |
| 7873 | 9년 전 | 480 | ||
| 7872 | 9년 전 | 611 | ||
| 7871 | 9년 전 | 443 | ||
| 7870 | 9년 전 | 565 | ||
| 7869 | 9년 전 | 384 | ||
| 7868 | 9년 전 | 376 | ||
| 7867 | 9년 전 | 378 | ||
| 7866 | 9년 전 | 435 | ||
| 7865 | 9년 전 | 393 | ||
| 7864 | 9년 전 | 457 | ||
| 7863 | 9년 전 | 448 | ||
| 7862 | 9년 전 | 425 | ||
| 7861 | 9년 전 | 587 | ||
| 7860 | 9년 전 | 593 | ||
| 7859 | 9년 전 | 362 | ||
| 7858 | 9년 전 | 670 | ||
| 7857 | 9년 전 | 1019 | ||
| 7856 | 9년 전 | 482 | ||
| 7855 | 9년 전 | 696 | ||
| 7854 | 9년 전 | 694 | ||
| 7853 | 9년 전 | 526 | ||
| 7852 | 9년 전 | 469 | ||
| 7851 | 9년 전 | 445 | ||
| 7850 | 9년 전 | 539 | ||
| 7849 | 9년 전 | 312 | ||
| 7848 | 9년 전 | 360 | ||
| 7847 | 9년 전 | 585 | ||
| 7846 | 9년 전 | 402 | ||
| 7845 | 9년 전 | 365 | ||
| 7844 | 9년 전 | 364 | ||
| 7843 | 9년 전 | 368 | ||
| 7842 | 9년 전 | 366 | ||
| 7841 | 9년 전 | 352 | ||
| 7840 | 9년 전 | 358 | ||
| 7839 | 9년 전 | 392 | ||
| 7838 | 9년 전 | 477 | ||
| 7837 | 9년 전 | 317 | ||
| 7836 | 9년 전 | 356 | ||
| 7835 | 9년 전 | 436 | ||
| 7834 |
|
9년 전 | 1167 | |
| 7833 | 9년 전 | 373 | ||
| 7832 | 9년 전 | 362 | ||
| 7831 | 9년 전 | 499 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기