解析错误交替的颜色行

用户名

难倒在引号中,有很多组合

解析错误:语法错误,意外的'align'(T_STRING),期望为','或';' 在第34行的C:\ xampp \ htdocs \ index.php中

$color="1";
{
  if($color==1){
echo "<tr bgcolor='#000000'>

echo "<td align='center' width='10'>" . $row['Name'] . "</td>";   ///LINE 34
echo "<td align='center' width='10'>" . "<a href=\"{$row['page']}\"><img src=\"{$row['img']}\">" . "</td>";
echo "<td align='center' width='10'>" . $row['date'] . "</td>";
echo "<td align='center' width='10'>" . $row['Ages'] . "</td>";

echo "</tr>";
}
echo "</table>";    
?>
奥雷利奥·德·罗莎(Aurelio De Rosa)

您在这里缺少右引号和分号:

echo "<tr bgcolor='#000000'>

应该

echo "<tr bgcolor='#000000'>";

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章