我把最外的双引号改成了单引号,它里面的引号全都改成双引号,这样似乎就可以了.
 
但是为什么呢?
还有,html里单双引号的用法有什么区别吗?

解决方案 »

  1.   

    你可以将程序改成:
    echo "<td height=\"23\" width=\"46\"><p align=\"center\">{$result[$i]['art_id']}</td>"; 就OK了。
      

  2.   

    楼上正解,还有两种方法:
    <?php//第一种:
    echo "<td height='23' width='46'><p align='center'>{$result[$i]['art_id']}</p></td>";
    //第二种:
    echo <<<TABLE
    <td height="23" width="46"><p align="center">$result[$i]['art_id']</p></td>
    TABLE;?>
      

  3.   

    echo "<td height=23 width=46><p align=center>{$result[$i]['art_id']}</td>";
      

  4.   

    echo "<td height=23 width=46><p align=center>{$result[$i]['art_id']}</td>";orecho "<td height='23' width='46'><p align='center'>{$result[$i]['art_id']}</td>";orecho "<td height=\"23\" width=\"46\"><p align=\"center\">{$result[$i]['art_id']}</td>";