Home > CMS Tutorial > Empire CMS > body text

How to display custom comment field content in the background comment table in Sharing Empire cms7.0

silencement
Release: 2019-11-29 13:56:32
forward
2622 people have browsed it

How to display custom comment field content in the background comment table in Sharing Empire cms7.0

The example of this article describes the method of Empire cms7.0 displaying the content of custom comment fields in the background comment table. Share it with everyone for your reference. The specific implementation method is as follows:

Find the file /e/admin/pl/ListAllPl.php, and find the

code in the file ListAllPl.php as follows:

$query="select plid,username,saytime,sayip,id,classid,checked,zcnum,fdnum,userid,isgood,saytext,pubid from 
{$dbtbpre}enewspl_".$restb.$add;
Copy after login

Obtain the total number of entries and add the custom fields. In this example, contact number, tel is added. Note that there is an English comma behind it. The result is as follows:

Recommended study " Empire cms tutorial

The code is as follows:

$query="select tel,plid,username,saytime,sayip,id,classid,checked,zcnum,fdnum,userid,isgood,saytext,pubid from 
{$dbtbpre}enewspl_".$restb.$add;
Copy after login

Get the total number of items and add the code to the display part:

The code is as follows:

<?=$r[tel]?>
Copy after login

Hope What is described in this article will be helpful to everyone’s Imperial CMS website building.

The above is the detailed content of How to display custom comment field content in the background comment table in Sharing Empire cms7.0. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:www.word666.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!