| |
村子进不去,群里没人理,身边没有人,百度知道也都没有一个人理我的问题。到现在还是想不明白这到底是哪里出错了,在本地明明是连个warning都没有的,在服务器上怎么就这样呢,郁闷了。
相关代码如下


function link($num='')
{
global $db;
if($num=='')
{
$sql = "select `lid`,`webname`,`logo`,`url`,`describe` from `top_link` order by `lid`";
}
else
{
$sql = "select `lid`,`webname`,`logo`,`url`,`describe` from `top_link` order by `lid` limit 0,$num";
}
$query = $db->query($sql);
while($rs=$db->fetch_array($query))
{
if($rs[logo]=='')
{
echo"<li><a href=$rs[url] target='_blank' title='$rs[describe]'>$rs[webname]</a></li>";
}
else
{
echo"<a href=$rs[url] target='_blank' title='$rs[describe]'><img src='$rs[logo]' border='0'></a><br>";
}
}
}
Tags: ,
by admin | 来自 本站原创 | 不指定 2007-4-5 17:40 | 分类: 生活 | 评论(1) | 引用(20) | 阅读(1400)
admin Email Homepage
2007-4-20 10:33
这个问题最终当然是成功解决了。解决的办法是给那个函数重新命名了。因为文件量太大,或许有可能是link已经用过了
分页: 1/3 第一页 1 2 3 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]