它在方括号中有问题,但我不知道哪里出了错。这只是php文件的一部分,我无法匹配括号。
<?php
while($cella = mysqli_fetch_assoc($keres))
{
$nev = $cella['nev'];
$taj = $cella['taj'];
$lelet = $cella['lelet'];
$id = $cella['valtozo'];
echo "
<tr onClick=\"javascript:parent.mainFrame.location.href = "leletmod.php?taj={$taj}&nev={$nev}&lelelt={$lelet}&id={$id}";\">"
?>
<td class="tablabelso">
<? echo $nev ?>
</td>
<td class="tablabelso">
<? echo $taj ?>
</td>
<td class="tablabelso">
<? echo $lelet ?>
</td>
</tr>
> <?php }
>
> mysqli_free_result($keres);
> else {
>
> print ' <BR>'; print ' <BR>'; print ' <BR>'; print ' <BR>';
> print '
> <BR>'; print '
> <table align="center" valign="top">'; print '
> <form action="leletmod.php" method="POST">'; print '
> <tr>'; print '
> <td>
> <p class="tabalacim">Beteg neve : </p>
> </td>'; print '
> <td>
> <input type="text" name="nev" size=40 maxlength="40">
> </td>'; print '
> <td colspan="2" align="right">
> <input type="submit" class="gomb" value=".:::OK:::.">
> </td>'; print '
> </tr>'; print '
> </form>'; print '
> </table>';
>
> }
> ?>
我在浏览器中得到的错误代码:
“解析错误:语法错误,意外的'else'(T_ELSE),如果文件在...中,则期望结束。“