Hongmu Notes
When developing the Empire plug-in, the filter function for input characters

When developing the Empire plug-in, the filter function for input characters Program Notes Empire cms

(1) Numeric variables can be processed with the (int) or intval function, for example: $page=(int)$_GET['page']; or $page=intval($_GET['page']); (2) Numeric variables with decimal points can be processed with the (float) or floatval function, for example: $money=(float)$money; or $...
👁 130
PHP preg

PHP preg Language Notes PHP PHP collection

<?php $userinfo = "Name: <b>PHP</b> <br> Title: <b>Programming Language</b>"; preg_match_all ("/<b&…
👁 169
How to refresh the verification code when clicking on it

How to refresh the verification code when clicking on it Summary of pitfalls

Generally implemented through js, just reload the value of src<img src="index.php?p=back&c=Admin&a=captcha" onclick="this.src=this.src+'&k='+Math.random();"/…
👁 198
Analysis of the efficiency difference and application situation between switch and ifelse in php

Analysis of the efficiency difference and application situation between switch and ifelse in php Language Notes PHP

This article provides a practical analysis of the efficiency differences and appropriate use cases between the `switch` and `if–else` statements in PHP – shared here for your reference. The detailed analysis is as follows: Both of these PHP control structures are used to determine whether a value meets a specific condition and to execute different actions accordingly (whether the condition is met or not). Regardless of the programming language used, developers always need to consider the execution efficiency of their code. After reviewing various resources, it was found that the `switch` and `if–else` statements behave differently in various scenarios...
👁 149
How to determine whether an email is correct in php

How to determine whether an email is correct in php Language Notes PHP

<?php $email = &quot;demo@example.com&quot;; if (filter_var($email, FILTER_VALIDATE_EMAIL)) {echo '" ". $email. " " is valid.';} else {echo...
👁 112
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
php mt

php mt Language Notes PHP

The mt_rand () function uses the Mersenetwister algorithm to generate random integers. Tip: This function is a better choice to generate random values, and the speed of returning results is four times that of rand () function. Tip: If you want a random integer between 10 and 100 (inclusive), please use mt_rand (10,100). & lt…
👁 172
SQL UPDATE statement updates a piece of data to the database

SQL UPDATE statement updates a piece of data to the database Language Notes mySql

UPDATE table name SET column name = new value WHERE column name = some value
👁 129
How to remove escape characters in php

How to remove escape characters in php Language Notes PHP

Php's method of removing escape characters: string stripslashes (string $str) returns a string (' Convert to ' Wait). The backslash (\) is converted into a single backslash (). Stripslashes () is non-recursive. If you want to use this function in multidimensional arrays, you need to use recursive functions.
👁 144
PHP special character escaping and restoration

PHP special character escaping and restoration Language Notes PHP PHP collection PHP and mysql

Escape character is a special character constant. Escape characters are backslashed " & quot; At the beginning, followed by one or more characters. The escaped character has a specific meaning, which is different from the original meaning of the character, so it is called "escaped" character. The use of escape characters 1: turn ordinary characters into special purposes, such as back key and enter key. 2. Used to convert a character with special meaning back to its original meaning. 3. Before data is written into the database, escape characters (function …
👁 180
1 310 311 312 313 314 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