Home > Article > CMS Tutorial > 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('InEmpireCMS')) { 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='header' 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!