引用1:
查找:
} else {
$showoldetails = false;
}
下面加:
//首页热门贴 Start
$hack_subject_len=34; //每个标题最多显示得字数
$hack_subject_num=10; //需要显示记录数
//最新贴
$query = $db->query("SELECT dateline,tid,subject,author,views,replies FROM {$tablepre}threads ORDER BY dateline DESC LIMIT 0、$hack_subject_num");
while($thread = $db->fetch_array($query)) {
$thread[subject0]=$thread[subject];
$thread['subject'] = cutstr($thread['subject']、$hack_subject_len);
$hack_newthreads_threadlist[] = $thread;
}
$threadview = $threadreply = array();
//最新回复
$query = $db->query("SELECT replies、tid、subject,author,views,lastposter FROM {$tablepre}threads where replies !=0 ORDER BY lastpost DESC LIMIT 0、$hack_subject_num");
while($thread = $db->fetch_array($query)) {
$thread[subject0]=$thread[subject];
$thread[subject] = cutstr($thread[subject]、$hack_subject_len);
$threadreply[] = $thread;
}
//首页热门贴 End
改" index.php"引用1的无法使用
Parse error: parse error孊unexpected T_STRING in d:\usr\www\html\index.php on line 39
----------------------------------------------------------------------------------------------------------------------------------------------
唔改 "index.php"的引用1最新发表"和"最新发表"无法使用
[ 本帖最后由 computers000 于 2006-7-21 03:13 编辑 ] |