묻고답하기

<?
echo ("
<html>
<head>
<title>
간단게시판</title>
</head>
<body bgcolor=#CDCDBE>
");
if (!$page) {$page=1;}
if ($pagekey==1) {$page--;}
elseif ($pagekey==2) {$page++;}
$MaxNumContents=10;
$connection=mysql_connect("localhost","poketdream","******");
mysql_select_db("*********",$connection);
$result=mysql_query("select*from board1 order by id desc",$connection);
$Total=mysql_num_rows($result);
if(!$Total) {
        echo ("<center><h1>게시판에 등록된 글이 없습니다</h1><center>");
}else{
        echo ("

<center>

<table border=1 cellspacing=1 width=580>
        <tr bgcolor='white'>
        <td align=center><font size='2' color='black'><nobr>
<font face='Arial'>No</font></nobr></font></td>
        <td align=center><font size='2' color='black'><nobr></nobr></font>
        <fint size='2' color='black'><nobr>
        <font face='Arial'>Name</font></nobr></font></td>
        <td align=center><font size='+ '+ '2' color='black'><nobr>
        <font size='Arial'>Subject</font></nobr></font></td>
        <td align=center><font size='2' color='black'><nobr>
        <font face='Arial'>Date</font></nobr></font></td>
        <td align=center><font size='2' color='black'><nobr>
        <font face='Arial'>Hits</font></nobr></font></td></tr>
");
$counter=$MaxnumContents*$page-10;
if($Total>$page*10) {$EndPage=$Page*$MaxNumContents;}
else {$EndPage=$Total;}
while($counter<$EndPage) {
$id=mysql_result($result,$counter,"id");
$writer=mysql_result($result,$counter,"writer");
$topic=mysql_result($result,$counter,"topic");
$wdate=mysql_result($result,$counter,"wdate");
$hit=mysql_result($result,$counter,"hit");
$email=mysql_result($result,$counter,"email");
echo ("
<tr>
        <td align=center><font size='2' color='black'>$id</td>
        <td align=center><font size='2' color='+ 'black'>
        <a href=formmail.php3?email=$email>$writer</a></td>
        <td align=left><nobr><nobr><img src=new.gif>
        <font size='2' color='black'>
        <a href=content.php3?board=$board&page=$page&id=$id>$topic</a></td>
        <td align=center><font size='2' color='black'>$wdate</td>
        <td align=center><font size='2' color='black'>$hit</td><tr>
");
$counter = $counter+1;
endwhile;
}
echo ("
</table><br>
<hr size=1 noshade width=60%>
");
if ($page==1 and $Total<=$MaxNumContents) {echo ("
<a href=input.php3?board=board1&page><img src=write.gif board=0></a>
");
}
elseif($page>1 and $Total>$MaxNumContents) {echo ("
<a href=input.php3?board=board1&page=$page><img src=?write.gif border=0>
        </a> 
<a href=show.php3?board=board1&page=$page&pagekey=2>다음 페이지</a>
        ");
}
elseif($page>1 and $page*$MaxNumContents<$Total) {echo "
<a href=show.php3?board=board1&page=$page&pagekey=1>이전 페이지</a> 
<a href=show.php3?board=board1&page=$page&pagekey=2>다음 페이지</a> 
<a href=input.php3?board=board1&page=$page><img src=http:write.gif border=0>
</a>  ";
}
elseif($page>1 and $page*$MaxNumContents>=$Total) {echo ("
<a href=show.php3?board=board1&page=$page&pagekey=1>이전 페이지</a>&nbdp
<a href=input.php3?board=board1&page=$page><img src=http:write.gif border=0>
        </a> ");
}
echo ("
<center>
</body>
</html>
        ");
?>



while문~endwhile문에서 에러가 납니다.
아니, 정확히 말하자면 endwhile;에서 에러가 나죠
문법에러라고 뜹니다. 하지만 저 부분을


while($counter<$EndPage) {
$id=mysql_result($result,$counter,"id");
$writer=mysql_result($result,$counter,"writer");
$topic=mysql_result($result,$counter,"topic");
$wdate=mysql_result($result,$counter,"wdate");
$hit=mysql_result($result,$counter,"hit");
$email=mysql_result($result,$counter,"email");
echo ("
<tr>
        <td align=center><font size='2' color='black'>$id</td>
        <td align=center><font size='2' color='black'>
        <a href=formmail.php3?email=$email>$writer</a></td>
        <td align=left><nobr><nobr><img src=new.gif>
        <font size='2'+ ' color='black'>
        <a href=content.php3?board=$board&page=$page&id=$id>$topic</a></td>
        <td align=center><font size='2' color='black'>$wdate</td>
        <td align=center><font size='2' color='black'>$hit</td><tr>
");
$counter = $counter+1;
endwhile;
}

이부분을

while($counter<$EndPage);
$id=mysql_result($result,$counter,"id");
$writer=mysql_result($result,$counter,"writer");
$topic=mysql_result($result,$counter,"topic");
$wdate=mysql_result($result,$counter,"wdate");
$hit=mysql_result($result,$counter,"hit");
$email=mysql_result($result,$counter,"email");
echo ("
<tr>
        <td align=center><font size='2' color='black'>$id</td>
        <td align=center><font size='2'+ ' color='black'>
        <a href=formmail.php3?email=$email>$writer</a></td>
        <td align=left><nobr><nobr><img src=new.gif>
        <font size='2' color='black'>
        <a href=content.php3?board=$board&page=$page&id=$id>$topic</a></td>
        <td align=center><font size='2' color='black'>$wdate</td>
        <td align=center><font size='2' color='black'>$hit</td><tr>
");
$counter = $counter+1;
endwhile;


이렇게 바꿔도 안됩니다.


뭐가 잘못된거죠?endwhile문이 잘못된 건가요
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
Eccen 무(無)프레임과 프레임 홈페이지 어느게 나을까? [2] 2007.08.10
박민수 나모에 관한 질문입니다. [2] 2007.08.10
전재진 include질문...입니다... -_ㅠ [4] 2007.08.10
Blue Sky... 저기요...이것좀 알려주세요...........ㅠㅠ. [1] 2007.08.10
Eccen 서민웅님의 테이블에 대한 질문 답변입니다~ [1] file 2007.08.10
홍영훈 저희집서버좀... [2] 2007.08.10
김용식 [질문]좋은 책좀 소개시켜 주세요... [1] 2007.08.10
최을수 제로카운테에서 TOTAL HIT 수치를 수정하는 방법 좀...  
minezz 최근게시물 다르게 출력하는 방법에 대해서 질문합니다. [1] 2007.08.10
미라클 이미지 표현을 이렇게 하려면 어떻게 합성해야하죠? [3] 2007.08.10
임재민 include 질문 인데요... [1] 2007.08.10
toru 제로카운터, 중복카운트 되게 안되나요? [1] 2007.08.10
안건호 워크래프트3 클랜 홈피를 운영하는데요... [1] 2007.08.10
Hidea 브러쉬에서 벗어나려면..  
minezz 소스좀 설명해주세요 .ㅠ  
구은지 ☆★*..별이 종종종 따라다니는 소스요>_<  
nafoot 2000 server 에서 smtp는 뜨는데 메일이 안가요.. [1] 2007.08.10
=ㅅ= 마우스로 스크롤바 제어하기...  
Polar while문에서 에러가 나네요 [1] 2007.08.10
김현수 게시물의 롤오버 효과 [2] 2007.08.10
박재성 제가 서버구축을 하고 php를 처음 접하려고 합니다. 좀 도와주세요..  
조승훈 이거 무쟈게 불편한데 해답좀 주세여. ㅠ.ㅠ [1] 2007.08.10
박상우 쿠키 관련해서 질문 할께요..;; [3] 2007.08.10
빅토리아 하드디스크에 대해서 아시는분..부탁드립니다. [1] 2007.08.10
김동현 제발 부탁드립니다. ㅠㅠ 자바스크립트.. 팝업관련;;  
김승주™ useradd 명령이 안됩니다. 어떠한 이유인지요.... [2] 2007.08.10
최혜원 <수정판> 『 Photoshop 7.0 』 Font [5] 2007.08.10
Click 일러스트에는... [2] 2007.08.10
박민수 아이프레임에 관한 질문이에요 [3] 2007.08.10
최혜원 <포토샵7.0> 이건 진.짜.로 봐야돼요 ⅲ [5] 2007.08.10