구문 오류라고 자꾸 나오네엽...
결과는 나오긴 하는데....
혹시 우편번호 검색 소스가 있는곳을 알구 있으심 알려주시구여
에러 라인은 59번째 입니다..
<HTML><HEAD><TITLE>우편번호 조회</TITLE>
<META NAME=description CONTENT="">
<META NAME=keywords CONTENT="">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=euc-kr">
<STYLE TYPE="text/css">
.g1 {font-family : "굴림"; font-size : 10pt; line-height:12pt;}
.g2 {font-family : "굴림"; font-size : 12pt; line-height:16pt;}
.g3 {font-family : "굴림"; font-size : 9pt; line-height:11pt;}
.e1 {font-family : "arial, helvetica, ms sans serif" ; font-size : 9pt; line-height:11pt;}<a href="jwalkin_ecsectv
iew.en.htm">오라클 쇼핑몰에 오신 것을 환영합니다</a> .sbbtn01{color : #fffff7; background-color: #528ca5
; cursor:hand; font-size: 10pt; font-weight: bold; } INPUT {background-color: #fffff7; color:black;FONT-size: 10pt;}
SELECT {background-color : #fffff7; }
</STYLE>
<SCRIPT LANGUAGE = Javascript>
function putpost(a,b,c)
{
opener.document.order.zip1.value = a;
opener.document.order.zip2.value = b;
opener.document.order.address.value = c;
this.close();
opener.document.order.address.focus();
}
function winclose()
{
this.close();
}
</SCRIPT>
</HEAD>
<BODY TOPMARGIN=0 LEFTMARGIN=9 LINK=#00008B VLINK=#003399 onload='document.search.dong.focus()'>
<center>
<form name=search method=post>
<table bordercolor=black border=1>
<tr>
<td bgcolor=navy><font face=굴림 size=2 color=white><b>주소검색</b></font></td>
<td bgcolor=navy><font face=굴림 size=3 color=white><input type=text size=20 maxlength=20 name=dong><input type="hidde
n" name="chk" value="submit"></font></td> <td bgcolor=navy><font face=굴림 size=3 color=white><input type=submit val
ue="검색"> <input type=button value="종료" onclick="winclose()"></font></td> </tr>
<tr>
<td bgcolor=white colspan=3 align=center><font face=굴림 size=2 color=black>※읍,면,동 이름을 넣으세요.</fo
nt></td> </tr>
</table>
<br><br>
<table bordercolor=navy border=1>
<tr>
<td bgcolor=navy align=center><font face=굴림 size=2 color=white><b>우편번호</b></td>
<td bgcolor=navy align=center><font face=굴림 size=2 color=white><b>주소</b></td>
<td bgcolor=navy align=center><font face=굴림 size=2 color=white><b>처리</b></td>
</tr>
<?
if ($chk=="submit"){
include "../dbconn.inc";
$sql="SELECT * FROM $zip WHERE data_2 LIKE '%$dong%'";
$result=mysql_query($sql,$dbconn); /////////여기가 59번째 인데여
$total=mysql_affected_rows(); //가져온 글의 수
#echo("<br>$total");
for($i=0; $i<$total;$i++){
$zip=mysql_result($result,0,"code");
$data_1=mysql_result($result,0,"data_1");
$data_2=mysql_result($result,0,"data_2");
?>
<tr>
<td><small><?echo("$zip")?></small></td>
<td><small><?$address="$data_1". "$data_2";
echo("$address");?></small></td>
<td><input type=button value="선택" onclick="putpost()?>','<?echo("$address")?>')"></td>
</tr>
<?
}
}
?>
</table>
</form>
</center>
</body>
</html>
<!--
<?#echo("$chk");?>
<HTML><HEAD><TITLE>우편번호 조회</TITLE>
<META NAME=description CONTENT="">
<META NAME=keywords CONTENT="">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=euc-kr">
<STYLE TYPE="text/css">
.g1 {font-family : "굴림"; font-size : 10pt; line-height:12pt;}
.g2 {font-family : "굴림"; font-size : 12pt; line-height:16pt;}
.g3 {font-family : "굴림"; font-size : 9pt; line-height:11pt;}
.e1 {font-family : "arial, helvetica, ms sans serif" ; font-size : 9pt; line-height:11pt;}<a href="jwalkin_ecsectv
iew.en.htm">오라클 쇼핑몰에 오신 것을 환영합니다</a> .sbbtn01{color : #fffff7; background-color: #528ca5
; cursor:hand; font-size: 10pt; font-weight: bold; } INPUT {background-color: #fffff7; color:black;FONT-size: 10pt;}
SELECT {background-color : #fffff7; }
</STYLE>
<SCRIPT LANGUAGE = Javascript>
function putpost(a,b,c,d)
{
opener.document.user.post1.value = a;
opener.document.user.post2.value = b;
opener.document.user.haddr1.value = c;
opener.document.user.hphone1.value = d;
this.close();
opener.document.user.haddr1.focus();
}
function winclose()
{
this.close();
}
</SCRIPT>
</HEAD>
<BODY>
<center>
<form name=search method=post>
<table bordercolor=black border=1>
<tr>
<td bgcolor=navy><font face=굴림 size=2 color=white><b>주소검색</b></font></td>
<td bgcolor=navy><font face=굴림 size=3 color=white><input type=text size=20 maxlength=20 name=dong></font></td>
<td bgcolor=navy><font face=굴림 size=3 color=white><input type=submit value="검색"> <input type=button
value="종료" onclick="winclose()"></font></td> </tr>
<tr>
<td bgcolor=white colspan=3 align=center><font face=굴림 size=2 color=black>※읍,면,동 이름을 넣으세요.</fo
nt></td> </tr>
</table>
<br><br>
<table bordercolor=navy border=1>
<tr>
<td bgcolor=navy align=center><font face=굴림 size=2 color=white><b>우편번호</b></td>
<td bgcolor=navy align=center><font face=굴림 size=2 color=white><b>주소</b></td>
<td bgcolor=navy align=center><font face=굴림 size=2 color=white><b>처리</b></td>
</tr>
</table>
</form>
</center>
</body>
</html>
---------------------------------------
-->