PHP 编程语法错误



我是编程新手,我需要一些帮助。我收到以下错误:解析错误:语法错误,第 99 行的 C:\wamp64\www\project\topic.php 中意外的","。我之前对此做过研究,但问题是我实际上正在遵循构建简单论坛的教程,所以我在这里有点迷茫。您能否帮助我识别此错误。

<?php
echo '<tr class = "topic-post"> 
<td class = "user-post"> '. $row ['Username']. '<br/>'.
 ('dmY H: i', strtotime ($row ['Post_date'])). '</ Td> 
<td class = "post-content"> '. htmlentities (stripslashes ($row 
['Post_content'])). '</ Td> 
</ Tr> ';
?>

您缺少对 date() 函数的调用。

<?php
echo '<tr class = "topic-post"> 
<td class = "user-post"> '. $row ['Username']. '<br/>'.
 date('dmY H: i', strtotime ($row ['Post_date'])). '</ Td> 
<td class = "post-content"> '. htmlentities (stripslashes ($row 
['Post_content'])). '</ Td> 
</ Tr> ';
?>

最新更新