一个应该很简单的问题,但急 我把最外的双引号改成了单引号,它里面的引号全都改成双引号,这样似乎就可以了. 但是为什么呢?还有,html里单双引号的用法有什么区别吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你可以将程序改成:echo "<td height=\"23\" width=\"46\"><p align=\"center\">{$result[$i]['art_id']}</td>"; 就OK了。 楼上正解,还有两种方法:<?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;?> echo "<td height=23 width=46><p align=center>{$result[$i]['art_id']}</td>"; 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>"; 关于php与xhtml、div+css,高手入 怎样判断一个页面中关闭操作是点的IE的关闭按钮,还是页面本身的关闭按钮阿,谢谢各位大虾了,急,急 子类构造函数如何调用父类的构造函数 关于密码长度限制问题 如何实现软件后台管理的软件上传功能? 正则匹配任意字母但不包括... 兄弟帮忙 为什么mysql进程一上来就不会返回,是PHP还是配置原因 请问,如何在php中调用其他页面的变量? 请问下https的网址php如何抓取。curl函数感觉已经被秒杀了! 懂得用php在window下编程的请进! 奇怪的问题!!!(代码很简单,可问题很奇怪)
echo "<td height=\"23\" width=\"46\"><p align=\"center\">{$result[$i]['art_id']}</td>"; 就OK了。
<?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;?>