团委上面又交下任务,要我重新设计开发青年网.
我想找人"合伙",可我认识的人都不会.只有自己做了.还好,不管怎么样,反正有个思路了.
<?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