panos

php程序中html对象的属性value不能用""

团委上面又交下任务,要我重新设计开发青年网.
我想找人"合伙",可我认识的人都不会.只有自己做了.还好,不管怎么样,反正有个思路了.
<?php
//新闻列表显示php
include"news/include/conn.inc.php";
include_once "news/include/zijie.php";
           $sql="select * from new_f where kind='dekt' order by id DESC limit 0,10";
    $result=mysql_query($sql);
    while($res=mysql_fetch_array($result)){
    $p="...";
    $title=zijie($res["title"],24,$p);
    echo "<table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
           <tr><td class="td1"><img src='images/icon/syxw1.gif'></td><td>
    <a href='news/detail.php?id=".base64_encode($res["id"])."&kind=".base64_encode($res["kind"])."' target='_blank'
    title='标题:".$res["title"]."(发布时间:".$res["addtime"].")'>".$title."</a></td></tr></table>" ;
    }
     mysql_free_result($result);
?>
//保存为page.php,
//传到服务器上执行报错
//根据报错消息发现在php程序中不能"<table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
//要把属性值""该成''ok

posted on 2006-05-04 19:49 mr.panos 阅读(388) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
<2024年3月>
252627282912
3456789
10111213141516
17181920212223
24252627282930
31123456

导航

统计

常用链接

留言簿(1)

随笔分类

随笔档案

中文百科全书

搜索

最新评论

阅读排行榜

评论排行榜