Home > Backend Development > PHP Tutorial > ecshop怎样单独的取出各项评论的数据

ecshop怎样单独的取出各项评论的数据

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:13:52
Original
954 people have browsed it

ecshop的评论应该怎样单独取出我要的数据呢?

<code><div class="comment_yes">
    <p class="comment_pl">
        <span class="dspinl2 comment_name">
            <em>评论者的头像</em>
            <i class="">评论者的用户名</i>
        </span>
        <span class="dspinl2 comment_text">
        <em>
            评论内容
        </em>
        <i>评论时间</i>
        </span>
    </p>
</div>
</code>
Copy after login
Copy after login

因为ecshop在页面通过{insert name='comments' type=$type id=$id}一下子取太多东西了,我要怎样能单独取出上面那种我要的数据呢?

回复内容:

ecshop的评论应该怎样单独取出我要的数据呢?

<code><div class="comment_yes">
    <p class="comment_pl">
        <span class="dspinl2 comment_name">
            <em>评论者的头像</em>
            <i class="">评论者的用户名</i>
        </span>
        <span class="dspinl2 comment_text">
        <em>
            评论内容
        </em>
        <i>评论时间</i>
        </span>
    </p>
</div>
</code>
Copy after login
Copy after login

因为ecshop在页面通过{insert name='comments' type=$type id=$id}一下子取太多东西了,我要怎样能单独取出上面那种我要的数据呢?

重写 comments 的代码。
{insert name='comments' type=$type id=$id}
这一块是调用了一个文件的,找到这个文件,重写。

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template