묻고답하기

<?
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 남기남
김햄C 포인트 중복 차감 오류 [2] 2015.11.04 by 김햄C
비누남어 XEition 수정 레이아웃 bootstrap 적용여부?  
김쪼도사 팝업 관리 애드온의 닫기 버튼 오류 file  
Golden-mean 모바일 자동비밀글 소스  
하프하프 헤더스크립트 질문입니다! file  
상해파 rssboard에서 insertDocument에 값이 안들어가는 문제 [1] 2015.11.04 by gonom
초희67 xe 1.4x 에서 1.7.11 로 데이터이전이 안되는데요...^^ [4] 2015.11.04 by 초희67
비비로비로 회원가입시 특정메일링만 가입하게 어떻게 하나요? [1] 2015.11.04 by 퍼니엑스이
쇼이 사이트 게시판(메뉴) 글씨 크기를 줄이고 싶어요 ㅠㅠ [1] file 2015.11.04 by 수용맘~*
디자이너29270 게시판 파일첨부 클릭해도 반응이 [1] 2015.11.04 by 수용맘~*
tonyhan xpress engine 설치하는데 DB 에서 진행이 안됩니다 [2] file 2015.11.04 by tonyhan
현욱 안녕하세요 게시판관련하여 질문드립니다 file  
mc뷰 누리고 쇼핑몰을 사용중입니다. 하나만 질문하겠습니다.  
불꽃남자cc4e1 이미지 팝업 방법  
불꽃남자cc4e1 게시판 분류별(카테고리)로 설명 넣기 file  
해운대살고싶다 클라우드플레어 질문좀 캐쉬설정하는거 [1] 2015.11.05 by AJKJ
JAYLEEKOREA 이 게시판 좀 알려주세요~ [2] file 2015.11.05 by JAYLEEKOREA
김쪼도사 모바일 스킨에서 메뉴 호출이 안되는 문제  
TAEYONG2 질문좀하겠습니다 [2] 2015.11.05 by 가브리엘조
친절한깡패 컨텐츠위젯 내용직접추가 문제  
K모씨 외부페이지와 일반페이지의 테이블 높이 2px 차이 발생 ? [1] file 2015.11.05 by Double'U'
디디다 로그인이 안되요 ㅠㅠ [1] 2015.11.05 by 제주향이네귤나라
샤넬4da3b 외부페이지가 레이아웃 바깥으로 튑니다. [1] 2015.11.05 by 오뎅궁물
지완이 xe 느려짐 현상에 대해 질문 드립니다. [2] 2015.11.05 by 꾸링
난다여~ Permission denied to access property "toString" 오류  
아쿠아d3033 확장변수 불러오기 시에  
nano 최고 관리자 권한 유저는 글 작성이 안됩니다. (임시저장 가능) [4] 2015.11.05 by 친절한깡패
LAMB 수정일 기준의 방식을 변경하고 싶습니다 [5] 2015.11.05 by 규르
동산바치 관리자 모드로 게시판 제목 다국어 입력이 안되네요 file  
주시제 Board DX 본문 입력을 없애는 방법 알 수 있을까요?