难倒在引号中,有很多组合
解析错误:语法错误,意外的'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>";
?>
您在这里缺少右引号和分号:
echo "<tr bgcolor='#000000'>
应该
echo "<tr bgcolor='#000000'>";
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句