
- 帖子
- 3
- 积分
- 5
- 体力
- 3 点
- 金币
- 0
- 威望
- 0
|
18楼
发表于 2009-8-9 19:59
| 只看该作者
试用了,只是出现错误了,上网查了很多地方,可是找不到解决的办法。我的数据库前缀名是jy_。所以下面的这段代码中的'ecs'被我改成了'jy'- #
- # <?php
- # if(!function_exists("get_comments")){
- # function get_comments($num)
- # {
- # $sql = 'SELECT * FROM '. $GLOBALS['ecs']->table('comment') .
- # ' WHERE status = 1 AND parent_id = 0 and comment_type=0 '.
- # ' ORDER BY add_time DESC';
复制代码 修改完成后,库传到了库文件夹下。
在index.dwt适合的地方也插入了:<!-- #BeginLibraryItem "/library/index_comments.lbi" --><!-- #EndLibraryItem -->
可是完成后,主页显示如下错误:Parse error: syntax error, unexpected T_STRING in /home1/vhost/vh430389/www/feiya/includes/cls_template.php(1160) : eval()'d code on line 5
这是哪里错了呢? |
|