Home  >  Article  >  CMS Tutorial  >  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
silencementforward
2019-11-30 13:14:462989browse

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");
?>

Directly

The code is as follows at the place of call:

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

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!

Statement:
This article is reproduced at:www.word666.com/cms. If there is any infringement, please contact admin@php.cn delete