Home > CMS Tutorial > Empire CMS > Share the method of calling the empire cms header variable temp.header in php code

Share the method of calling the empire cms header variable temp.header in php code

silencement
Release: 2019-11-30 13:14:46
forward
3037 people have browsed it

Share the method of calling the empire cms header variable temp.header in php code

Directly upload the code

The code is as follows:

<?php
require("../e/class/connect.php");
if(!defined(&#39;InEmpireCMS&#39;))
{
exit();
}
require("../e/class/db_sql.php");
require("../e/class/q_functions.php");
$link=db_connect();
$empire=new mysqlquery();
$headr=$empire->fetch1("select varvalue from {$dbtbpre}enewstempvar where myvar=&#39;header&#39; limit 1");
?>
Copy after login

Directly

The code is as follows at the place of call:

<?=stripslashes($headr[0])?>
Copy after login

Recommended to study "Empirecms Tutorial"

The above is the detailed content of Share the method of calling the empire cms header variable temp.header in php code. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:www.word666.com/cms
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