1, submit button disabled
When the user submits, the button is immediately set to a unavailable state. This uses JS to achieve.
Before submissionCopy the Code code as follows:$ ("#submit"). attr (' disabled ', ' true ');$ ("#submit"). Val ("Being
For example, there are now and then. 3 pages. You want the user to start visiting the first page, then click Next to see "second page", and then before entering "third page", the user cannot
Back off. Let 1 and 2 be the same page. Leave a mark in
Each URL is replaced by 6 characters, and (6^32) can have a maximum of 1,073,741,824 short URLs.
Of course, you can also record more detailed information such as access history, creation time, etc.
If it is not enough, it can also be deleted for a
A the domain where the machine is located: A1.main.com,a has application main.php
B machine in the same domain: B1.test.com,b has application test.php
1. When setting a cookie in main.php, the cookie is set as follows:Copy the Code code as
Phpcms always jump to install/install.php,phpcms installation after installation is complete
Many people always jump to install/install.php after installing phpcms locally. Since many people are using PHPCMS for the first time, they do not know why
We know that database processing of SQL is a matter of processing, assuming that the process of buying goods is this:
SQL1: Check Product Inventory
if (stock qty > 0) { //Generate order ... SQL2: Stock-1}
When there is no concurrency, the above
When beginners thinkphp, the association model in thinkphp has a simple error point, now for example:
Tables to be needed: Id_elite_major and Id_elite_student
Examples of the code are:
Copy the Code code as follows: Class Elitemajormodel extends
Destoon after initializing the system, the system will automatically connect to the database and save the database operation object in $db. For the database operation method, please refer to include/db_mysql.class.php function prototype, the
1. First Login to Ucenter Admin Center add app
2, completed, click Submit, the page scroll to the bottom copy of the Ucenter configuration information to Notepad
Note that the data table prefix in the figure and the integration failure of the API
PHP Methods for preventing page caching
For example, I have 3 pages, 1. Shopping Cart 2. Order Address and payment Method 3. When the Order Generation 2--3 is displayed, the order data is inserted, the order information is generated, and the items
Many users use Destoon after the site transfer server, everything is normal, but when there is a search page, search Chinese characters will appear garbled box symbols, and search for numbers, English is normal.
For users using the Destoon (GBK)
In PHP, there are a lot of functions to intercept strings, and in thinkphp can also be directly used in PHP functions, this article gives you a simple introduction to the thinkphp template to intercept the specific use of strings, I hope to be
The default first page announcement in Destoon is called as follows:
Copy the Code code as follows:
$today _endtime-86400&areaid= $cityid &pagesize=3&datetype=2&order= Listorder desc,addtime Desc&target=_blank ")}–>
The template file referenced
CI framework comes with a simple and practical zip class, this article is to briefly describe the use of the CI framework zip class.
First you need to import the Zip class:
Copy the Code code as follows:$this->load-> (' Zip ');
In addition, however,
The ThinkPHP3.1 version of the Action parameter binding feature provides parameter binding support for URL variables and action methods that can make your operation method definitions and parameter fetching clearer, and also facilitates the
In the case of the Smarty cache, the first execution will save its compiled output file to the cache directory, and then in the program through the Smarty Is_cache () function to detect whether its cache file expires, if the expiration will update
Usually use Ucenter to do mediation, add multiple applications and then have multiple sites have the ability to log out synchronously.
Ucenter Add application is not difficult, Destoon official online also has related tutorials.
But many friends in
Wampserver has been downloaded and will have time to try to run thinkphp locally.
In the app/lib/action/folder, you can define a controller class for each module, a module can contain multiple action methods, and when requested, resolves the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service