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;
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;
Get the total number of items and add the code to the display part:
The code is as follows:
<?=$r[tel]?>
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!