Hongmu Notes
define() function in php

define() function in php Language Notes PHP

`<?php define("PI", 3.1415926); // Define a constant $r=12;//定义圆半径 echo &quot;半径为12的单位的圆的面积&quot;.PI*($r*$r); // Calculate the area??>` In PHP, the `define()` function is commonly used to define constants; alternatively, `const` can be used...
👁 315
Creation of search form for empire cms7.5

Creation of search form for empire cms7.5 Program Notes Empire cms

It's best to carefully review this code before replacing the form you want to clone; otherwise, if any errors occur, I won't be held responsible. <form action= "!--news.url--]e/search/index.php" method= "post" name= "searchform"...
👁 548
How to retrieve the sub-table fields from the Empire CMS list page?

How to retrieve the sub-table fields from the Empire CMS list page? Program Notes Empire cms

To access the content of a sub-table field within a list template, you should use the "list.var support program code." Below is an example of list.var template code used to retrieve the "newstext" field from a news sub-table: $fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$r...
👁 229
How to generate QR code in php

How to generate QR code in php Language Notes PHP

Use the PHP QR Code library to generate QR codes: After downloading the library provided by the official website (via the link at the bottom), simply use the `phpqrcode.php` file to generate QR codes – however, your PHP environment must support GD2. The `phpqrcode.php` file provides a key `png()` method; the parameter `$text` specifies the text data to be encoded into the QR code; the parameter `$outfile...`
👁 475
Empire cms7.5 adds TAG auxiliary plug-ins in batches

Empire cms7.5 adds TAG auxiliary plug-ins in batches Program Notes Empire cms

This plugin is merely a supplementary add-on; the Empire version does not matter – either 7.5 or 7.2 will work. Duplicate tags will not be successfully inserted. PHP code: <?php require('../e/class/connect.php'); require('../e/class/db_SQL.php'); $link=db_connect(); $e...
👁 242
How to use sql statement to delete all article information in empire cms7.5 and let the ID start from 1

How to use sql statement to delete all article information in empire cms7.5 and let the ID start from 1 Program Notes Empire cms

The Empire CMS system can be completely emptied using the following SQL statements – this includes all article content, categories, tags, and member groups. If you have just purchased a new template and the data contained within it does not meet your requirements, you can use the following SQL commands: `TRUNCATE `[!db.pre!]ecms_news`;` or `TRUNCATE `[!db.pre!]ecms_news_check`...`.
👁 156
Universal website pv to advertising click plug-in

Universal website pv to advertising click plug-in Summary of pitfalls

A customer asked me to write a plug-in for him to convert website PV to advertisement click. I wrote him a plug-in according to his request. I only need to put the following code into a php file, and then introduce this php file to realize this function. PHP plug-in code: <?php /************************ Parameter configuration begins *********************...
👁 229
php mysqli database connection

php mysqli database connection Language Notes PHP PHP collection PHP and mysql

MySQLi database connection: `<?php define('DB_NAME', 'api_4s5_cn'); define('DB_USER', 'api_4s5_cn'); define('DB_PASSWORD', '4Eh6DEsLCT5HebjR'); define('DB_HOST', 'lo...');`
👁 183
Empire CMS uses smart tags to call the "previous article" and "next article" of the current article

Empire CMS uses smart tags to call the "previous article" and "next article" of the current article Program Notes Empire cms

To retrieve the "Previous Article" and "Next Article" codes for the current article using the Lingdong Tag in EmpireCMS: [e:loop={'selfinfo',1, 0, 0, 'id&lt; '.$navinfor[id].'','id desc'}] &lt;a href=&quot;&lt;?php echo $bqsr[titleurl];$pre='tr...
👁 263
php sends post data

php sends post data Language Notes PHP

<?php /** * Curl Version * Usage: * $post_string = &quot;app=request&amp;version=beta&quot;; * request_by_curl('http://localhost/restServer.php', $post_st...
👁 128
1 308 309 310 311 312 315

🔥 Popular articles

Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3749
Imperial cms imitation website tutorial corresponding notes

Imperial cms imitation website tutorial corresponding notes Program Notes Empire cms

Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq1810216796 QQ exchange group: 9589723231 Imperial cms website installation. Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq: 1810216796 qq exchange group: 958972323 Build an imperial program. If you have a server and have built an imperial website on the server, then...
👁 3413
Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014

Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014 Practical Collection empire template

This set of templates has a complete member center on mobile and PC. The member center template is also very good! By the way, there are also corresponding locomotive collection rules! Regarding installation, upload the direct installation version, install it directly, and then restore the data in the background. There is a view more on the mobile phone. If there is a problem, you can copy the view more code in index.js on the PC. If it has not taken effect yet, please check whether the js file renderings are referenced...
👁 2691