When naming a checkbox, you must add "[]", but you cannot add "[]" during receiving to get the value!
For example:
HtmlCode
1 & nbsp; 2 & nbsp; 3
Result. PHP code:
Foreach ($ _ post ['Year'] as $ item){Echo $ item. " ";}?>
Running may occur in the following situations:PhpMyAdminProgramThe message "loading failed" is displayed.McryptExtension, please checkPHPConfigurationError Message
1, Not correctly installedMySQLDatabase, in System ServiceMySQLThe related service
1. Obtain the ID of the newly generated automatic number from MySQL.
$ Id = mysql_insert_id (); // obtain the newly inserted ID
2. How does PHP determine whether the network is connected?
$ Url = "http://www.163.com/test.html ";$ File = @
My environment is XP, VC ++ 6.0, and installed PHP Environment
If you need to compile the extension of the current environment, you need to go to http://www.php.net/releases/to find the source code similar to php?
This is my version
First, let's
(This article reproduced: http://blog.csdn.net/luorikanxiyang/article/details/5905696)
Many people on the Internet have provided answers: ModifyPHPSession. gc_maxlifetime in the configuration file. If you want to learn more about the session
(This article reproduced: http://hi.baidu.com/pcbbt/item/03a53f3cda9827ffde222149)
PHP implements automatic login by remembering the password
PHP implements more than one method to remember the password for automatic login.
1. User Logon check
//
PHPStatic website page generation method
In PHP website development, full-site or partial static processing is required for website promotion and Seo. php provides multiple methods to generate static html pages, for example, to use PHP
1. configuration files involved:
/Etc/PhP5/apache2/PHP. ini
2. Specific rows:
Display_errors =Error_reporting =
3. Remember to restart the service.
PHP Error ReportThe PHP. ini file contains many configuration settings. You should have set your
PHP autoload mechanism details
(1) autoload mechanism Overview
When using the PHP oo mode to develop a system, we usually get used to storing the implementation of each class in a separate file, which makes it easy to reuse classes, at the same time,
Find an interesting thing:
$ Text = "AAAA
Bbb
CCC ";
$ Text = str_replace ('\ n', "", $ text );$ Text = str_replace ('\ R', "", $ text );$ Text = str_replace ('\ r \ n', "", $ text );
Normally, the above Code should be able to replace
Different technical platforms lead to different implementation methods. The same is Php. Small companies often choose win platforms, while large companies choose Unix-like platforms (Linux, freeBSD and other). Recently, I am learning PHP. In summary,
Sample website (click to download)/Files/zuroc/use the dreamweaver's template. php and javascriptare automatically set to the selected menu. Zip
A webpage menu implemented by CSS usually uses an ID to differentiate the selected menu to display
This article mainly describes PHP object-oriented programming methods. In PHP, we can use classes like C ++ and C # To encapsulate some of the methods we commonly use and then call them when instantiating them.
Constructor:
Class mypc {
Function _
Zend studio has been regarded as the best php ide, but Zend studio's support for JavaScript and CSS has been weak. The newly released Zend Studio 8 has added the Javascript debugging function and improved its support for CSS. However, Zend studio
MySQL database encoding, HTML page encoding, PHP or HTML file encoding must all be consistent.1. MySQL database encoding: Specify the encoding (such as gbk_chinese_ci) when creating a database. do not specify the encoding when creating a data table,
In the smartry template, how to separate and avoid{Literal}What about it?
My solution is:
In the
Then, reference the following JS file:
In this way, the backend and front-end can be developed at the same time. The TPL template file is only a
1. Variable
It can be seen that, like most data, variables use braces in the form of variable variables ). It is mentioned that:
Reference
In order to use variable variables with arrays, You have to resolve an ambiguity problem. that is, if you
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