<?
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년 전
우편번호 연결이 안된다는 말씀이 무슨 말씀이신지..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 181 | ||
| 8229 | 9년 전 | 164 | ||
| 8228 |
커네드커네드
|
9년 전 | 202 | |
| 8227 | 9년 전 | 244 | ||
| 8226 | 9년 전 | 263 | ||
| 8225 | 9년 전 | 239 | ||
| 8224 | 9년 전 | 251 | ||
| 8223 | 9년 전 | 222 | ||
| 8222 |
|
9년 전 | 288 | |
| 8221 | 9년 전 | 190 | ||
| 8220 | 9년 전 | 229 | ||
| 8219 | 9년 전 | 201 | ||
| 8218 | 9년 전 | 246 | ||
| 8217 |
star3840
|
9년 전 | 210 | |
| 8216 | 9년 전 | 279 | ||
| 8215 | 9년 전 | 223 | ||
| 8214 | 9년 전 | 331 | ||
| 8213 | 9년 전 | 291 | ||
| 8212 | 9년 전 | 205 | ||
| 8211 | 9년 전 | 373 | ||
| 8210 | 9년 전 | 370 | ||
| 8209 | 9년 전 | 449 | ||
| 8208 | 9년 전 | 337 | ||
| 8207 | 9년 전 | 348 | ||
| 8206 |
|
9년 전 | 291 | |
| 8205 | 9년 전 | 265 | ||
| 8204 | 9년 전 | 253 | ||
| 8203 | 9년 전 | 332 | ||
| 8202 | 9년 전 | 247 | ||
| 8201 | 9년 전 | 285 | ||
| 8200 | 9년 전 | 292 | ||
| 8199 | 9년 전 | 311 | ||
| 8198 | 9년 전 | 280 | ||
| 8197 | 9년 전 | 261 | ||
| 8196 | 9년 전 | 684 | ||
| 8195 | 9년 전 | 269 | ||
| 8194 | 9년 전 | 382 | ||
| 8193 | 9년 전 | 297 | ||
| 8192 | 9년 전 | 305 | ||
| 8191 | 9년 전 | 264 | ||
| 8190 | 9년 전 | 244 | ||
| 8189 | 9년 전 | 304 | ||
| 8188 | 9년 전 | 238 | ||
| 8187 | 9년 전 | 251 | ||
| 8186 | 9년 전 | 249 | ||
| 8185 | 9년 전 | 418 | ||
| 8184 | 9년 전 | 205 | ||
| 8183 | 9년 전 | 415 | ||
| 8182 | 9년 전 | 283 | ||
| 8181 | 9년 전 | 240 | ||
| 8180 | 9년 전 | 810 | ||
| 8179 | 9년 전 | 589 | ||
| 8178 | 9년 전 | 447 | ||
| 8177 |
kiplayer
|
9년 전 | 443 | |
| 8176 | 9년 전 | 474 | ||
| 8175 | 9년 전 | 364 | ||
| 8174 | 9년 전 | 354 | ||
| 8173 | 9년 전 | 446 | ||
| 8172 | 9년 전 | 326 | ||
| 8171 | 9년 전 | 285 | ||
| 8170 | 9년 전 | 404 | ||
| 8169 |
커네드커네드
|
9년 전 | 361 | |
| 8168 | 9년 전 | 443 | ||
| 8167 | 9년 전 | 432 | ||
| 8166 | 9년 전 | 330 | ||
| 8165 | 9년 전 | 269 | ||
| 8164 | 9년 전 | 408 | ||
| 8163 | 9년 전 | 411 | ||
| 8162 | 9년 전 | 395 | ||
| 8161 | 9년 전 | 407 | ||
| 8160 |
|
9년 전 | 629 | |
| 8159 | 9년 전 | 573 | ||
| 8158 | 9년 전 | 370 | ||
| 8157 | 9년 전 | 486 | ||
| 8156 | 9년 전 | 359 | ||
| 8155 | 9년 전 | 367 | ||
| 8154 |
00년생용띠
|
9년 전 | 698 | |
| 8153 | 9년 전 | 336 | ||
| 8152 |
|
9년 전 | 517 | |
| 8151 | 9년 전 | 508 | ||
| 8150 | 9년 전 | 627 | ||
| 8149 |
Jangfolk
|
9년 전 | 482 | |
| 8148 | 9년 전 | 299 | ||
| 8147 | 9년 전 | 481 | ||
| 8146 | 9년 전 | 563 | ||
| 8145 | 9년 전 | 521 | ||
| 8144 | 9년 전 | 488 | ||
| 8143 | 9년 전 | 316 | ||
| 8142 | 9년 전 | 531 | ||
| 8141 | 9년 전 | 477 | ||
| 8140 | 9년 전 | 1040 | ||
| 8139 | 9년 전 | 385 | ||
| 8138 |
전갈자리남자
|
9년 전 | 492 | |
| 8137 | 9년 전 | 526 | ||
| 8136 | 9년 전 | 858 | ||
| 8135 |
|
9년 전 | 898 | |
| 8134 |
PlayPixel
|
9년 전 | 641 | |
| 8133 |
|
9년 전 | 546 | |
| 8132 | 9년 전 | 584 | ||
| 8131 | 9년 전 | 942 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기