Maison > Article > développement back-end > 求鉴定异常,实在找不出来
求鉴定错误,实在找不出来
$row['article_title']
$row['article_body']
// 转义双引号echo "<div class='\"article\"'>";// 改用单引号,防止与字符串内的双引号冲突echo '<div class="article">';// 方便一点的,改用echo html;<br><font color="#e78608">------解决方案--------------------</font><br>echo "<div class="article">"; //41<br>echo "<div class="article_title"><p>$row['article_title']</p></div>";<br>echo "<div class="article_body"><p>$row['article_body']</p></div>";<br>echo "</div>";<br><br>改为<br>echo <div class="article"> <br><div class="article_title"><p>$row[article_title]</p></div> <br><div class="article_body"><p>$row[article_body]</p></div> <br> </div> <br>HTML;<br><br>既简单又清晰<br>切记!最后的 HTML; 要顶格<br><div class="clear"> </div> </div> </div>