<?
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년 전
우편번호 연결이 안된다는 말씀이 무슨 말씀이신지..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
해당 주소를 알려주시면 조금이라도 도움이 되드릴거 같은데ㅠ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2930 |
마케팅메지션
|
15년 전 | 965 | |
| 2929 |
마케팅메지션
|
15년 전 | 925 | |
| 2928 | 15년 전 | 1058 | ||
| 2927 | 15년 전 | 852 | ||
| 2926 | 15년 전 | 854 | ||
| 2925 | 15년 전 | 748 | ||
| 2924 | 15년 전 | 4489 | ||
| 2923 |
VBASP
|
15년 전 | 954 | |
| 2922 |
프리랜서개발자
|
15년 전 | 663 | |
| 2921 | 15년 전 | 1077 | ||
| 2920 | 15년 전 | 1043 | ||
| 2919 | 15년 전 | 1175 | ||
| 2918 | 15년 전 | 852 | ||
| 2917 | 15년 전 | 981 | ||
| 2916 |
마케팅메지션
|
15년 전 | 965 | |
| 2915 | 15년 전 | 921 | ||
| 2914 |
|
15년 전 | 802 | |
| 2913 | 15년 전 | 867 | ||
| 2912 | 15년 전 | 988 | ||
| 2911 |
|
15년 전 | 800 | |
| 2910 |
|
15년 전 | 799 | |
| 2909 |
|
15년 전 | 887 | |
| 2908 | 15년 전 | 808 | ||
| 2907 | 15년 전 | 788 | ||
| 2906 | 15년 전 | 802 | ||
| 2905 | 15년 전 | 794 | ||
| 2904 | 15년 전 | 812 | ||
| 2903 | 15년 전 | 752 | ||
| 2902 | 15년 전 | 766 | ||
| 2901 | 15년 전 | 741 | ||
| 2900 | 15년 전 | 966 | ||
| 2899 | 15년 전 | 899 | ||
| 2898 | 15년 전 | 760 | ||
| 2897 |
|
15년 전 | 783 | |
| 2896 | 15년 전 | 708 | ||
| 2895 |
|
15년 전 | 1877 | |
| 2894 | 15년 전 | 925 | ||
| 2893 | 15년 전 | 719 | ||
| 2892 | 15년 전 | 866 | ||
| 2891 | 15년 전 | 761 | ||
| 2890 |
|
15년 전 | 897 | |
| 2889 | 15년 전 | 768 | ||
| 2888 |
|
15년 전 | 867 | |
| 2887 | 15년 전 | 823 | ||
| 2886 | 15년 전 | 745 | ||
| 2885 | 15년 전 | 906 | ||
| 2884 | 15년 전 | 702 | ||
| 2883 |
마케팅메지션
|
15년 전 | 846 | |
| 2882 |
마케팅메지션
|
15년 전 | 901 | |
| 2881 | 15년 전 | 1193 | ||
| 2880 |
마케팅메지션
|
15년 전 | 780 | |
| 2879 | 15년 전 | 832 | ||
| 2878 | 15년 전 | 864 | ||
| 2877 |
라디오켓츠
|
15년 전 | 1442 | |
| 2876 |
|
15년 전 | 806 | |
| 2875 | 15년 전 | 959 | ||
| 2874 | 15년 전 | 1362 | ||
| 2873 | 15년 전 | 824 | ||
| 2872 |
|
15년 전 | 834 | |
| 2871 |
|
15년 전 | 727 | |
| 2870 | 15년 전 | 773 | ||
| 2869 |
마케팅메지션
|
15년 전 | 757 | |
| 2868 | 15년 전 | 1935 | ||
| 2867 |
|
15년 전 | 862 | |
| 2866 | 15년 전 | 899 | ||
| 2865 | 15년 전 | 820 | ||
| 2864 | 15년 전 | 1295 | ||
| 2863 | 15년 전 | 1208 | ||
| 2862 |
|
15년 전 | 844 | |
| 2861 | 15년 전 | 781 | ||
| 2860 | 15년 전 | 1079 | ||
| 2859 |
|
15년 전 | 649 | |
| 2858 |
|
15년 전 | 736 | |
| 2857 |
|
15년 전 | 794 | |
| 2856 |
마케팅메지션
|
15년 전 | 758 | |
| 2855 |
마케팅메지션
|
15년 전 | 712 | |
| 2854 | 15년 전 | 968 | ||
| 2853 | 15년 전 | 801 | ||
| 2852 |
|
15년 전 | 766 | |
| 2851 | 15년 전 | 714 | ||
| 2850 | 15년 전 | 809 | ||
| 2849 | 15년 전 | 2444 | ||
| 2848 |
Mentor
|
15년 전 | 796 | |
| 2847 |
마케팅메지션
|
15년 전 | 773 | |
| 2846 | 15년 전 | 779 | ||
| 2845 | 15년 전 | 754 | ||
| 2844 | 15년 전 | 970 | ||
| 2843 |
마케팅메지션
|
15년 전 | 700 | |
| 2842 | 15년 전 | 1042 | ||
| 2841 | 15년 전 | 825 | ||
| 2840 | 15년 전 | 839 | ||
| 2839 | 15년 전 | 1138 | ||
| 2838 | 15년 전 | 732 | ||
| 2837 | 15년 전 | 771 | ||
| 2836 | 15년 전 | 665 | ||
| 2835 |
마케팅메지션
|
15년 전 | 841 | |
| 2834 |
마케팅메지션
|
15년 전 | 668 | |
| 2833 |
|
15년 전 | 1120 | |
| 2832 |
|
15년 전 | 794 | |
| 2831 |
Mentor
|
15년 전 | 767 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기