php – T_INLINE_HTML?这有什么问题?
发布时间:2020-12-13 16:36:03 所属栏目:PHP教程 来源:网络整理
导读:? switch($data['type']) : ?? case 'log': ? ? while ($row = $data['loop']-fetch()) : ? table class="t-errors" tr td bIP:/b ? echo $row['LogShellIP']; ? bCommand:/b ? echo $row['LogShellCommand']; ? bExecuted:/b ? echo $row['LogShellReturn']
<? switch($data['type']) : ?> <? case 'log': ?> <? while ($row = $data['loop']->fetch()) : ?> <table class="t-errors"> <tr> <td> <b>IP:</b> <? echo $row['LogShellIP']; ?> <b>Command:</b> <? echo $row['LogShellCommand']; ?> <b>Executed:</b> <? echo $row['LogShellReturn']; ?> <b>Time:</b> <? echo format::time($row['LogShellTime']); ?> </td> </tr> </table> <? endwhile; ?> <? break; ?> <? case 'fatal': ?> <? case 'warning': ?> <? case 'notice': ?> <? case 'unknown': ?> <? while ($row = $data['loop']->fetch()) : ?> <table class="t-errors"> <tr> <td <? if ($row['LogErrorSeen'] == 0) { echo 'class="e-selected"'; } ?>> <b>String:</b> <? echo $row['LogErrorString']; ?> <b>File:</b> <? echo $row['LogErrorFile']; ?> <b>Line:</b> <? echo $row['LogErrorLine']; ?> <b>Context:</b> <? echo $row['LogErrorContext']; ?> <b>Ip:</b> <? echo $row['LogErrorIP']; ?> <b>Time:</b> <? echo format::time($row['LogErrorTime']); ?> </td> </tr> </table> <? endwhile; ?> <? break; ?> <? endswitch; ?> 我收到这个错误:
第33行是此脚本的第2行.这将插入模板上下文中.这有什么问题?他期待一个T_CASE,那就是那里!
合并第1行和第2行
<? switch($data['type']): case 'log': ?> 看这个link的评论(jeremia at gmx dot at 28-Jan-2008 02:52) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |