我试图在PHP中的Echo行中放置超链接,但它向我显示如下语法错误:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/48/11655748/html/display_comments.php on line 29
我的代码是:
echo "<div style='margin:30px 0px;'>
<table>
<tr>
<td>Resume :"<a href=http://testing.com/wp-content/uploads/rsjp/attachments/>$attachment</a>"</td>
</tr>
</table>
</br>
</div>";
请帮帮我们..我不知道这有什么不对......实际上我是PHP新手..
答案 0 :(得分:3)
你有多余的引号。它应该是:
echo "<div style='margin:30px 0px;'>
<table>
<tr>
<td>Resume :<a href='http://testing.com/wp-content/uploads/rsjp/attachments/'>$attachment</a></td>
</tr>
</table>
</br>
</div>";