Parse error: syntax error, unexpected '?>' in 오류가뜨는데 못잡겠습니다..
Copy
<?php
$connect = mysqli_connect('localhost', 'root', '', '');
$query ="SELECT* FROM car order by idx desc";
$result = mysqli_query($connect, $query);
$total = mysqli_num_rows($result);
?>
<h2 align=center></h2>
<table align = center>
<thead align = "center">
<tr>
<td width = "50" align="center"></td>
<td width = "500" align = "center"></td>
<td width = "100" align = "center"></td>
<td width = "200" align = "center"></td>
<td width = "50" align = "center"></td>
</tr>
</thead>
<tbody>
<?php
while($rows = mysqli_fetch_assoc($result))
{
if($total % 2==0){ <---- 82
?>
Parse error: syntax error, unexpected '?>' in C:\xampp\htdocs\m.php on line 82
라고 오류가 뜨는데 못잡고있어서 이렇게 올립니다...
|
답변 5개 / 댓글 2개
전체 코드 보여주시든지...아니면 뒤쪽부터 하나씩 지워나가면서 체크해보세요...지금 상태로는 모를 듯요..
답변을 작성하려면 로그인이 필요합니다.