Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我有这个代码来命名个别评论。
echo '<div class="leftpart"><a name="comment_'.$row["num"].'" ></a>';
像这样显示的链接...
?id=28#comment_34 /><a name=
怎么了/><a name=??
/><a name=
我应该显示更多代码吗?
你知道 $row["num"] 到底有什么吗?
也许需要 htmlspecialchars...
echo '<div class="leftpart"><a name="comment_'.htmlspecialchars($row["num"]).'" ></a>';