您好,欢迎光临本店! [登录] [免费注册]  

订单查询


资讯中心

用户评论

table('comment') . ' AS a,'. $GLOBALS['ecs']->table('goods') .'AS b WHERE a.status = 1 AND a.parent_id = 0 and a.comment_type=0 and a.id_value=b.goods_id '. ' ORDER BY a.add_time DESC'; if ($num > 0) { $sql .= ' LIMIT ' . $num; } //echo $sql; $res = $GLOBALS['db']->getAll($sql); $comments = array(); foreach ($res AS $idx => $row) { $comments[$idx]['add_time'] = local_date($GLOBALS['_CFG']['time_format'], $row['add_time']); $comments[$idx]['content'] = $row['content']; $comments[$idx]['id_value'] = $row['id_value']; $comments[$idx]['goods_thumb'] = get_image_path($row['goods_id'], $row['goods_thumb'], true); $comments[$idx]['goods_name'] = $row['goods_name']; } return $comments; } } ?> assign('my_comments',get_comments(6)); // 数据条数 ?>
© 2005-2016 梓晨 版权所有,并保留所有权利。

共执行 4 个查询,用时 0.072652 秒,在线 5 人,Gzip 已禁用,占用内存 2.916 MB
版权所有:北京梓晨浩远科贸有限公司
电话:400-800-0808转830507