IE8 must be added to the submenu to hide
Copy CodeThe code is as follows:
mysql_select_db ($database _lr, $LR);
$query = mysql_query ("SELECT * from Bigclass order by sort");
while ($row =mysql_fetch_array ($query))
{
1) Use the tag to set the page encoding
The purpose of this tag is to declare the client's browser with what character set encoding to display the page, XXX can be GB2312, GBK, UTF-8 (unlike MySQL, MySQL is UTF8) and so on. As a result, most pages
In PHP programming, the double quotation mark "and the single quotation mark" is the string and the character expression form, then we want to output it how to do, below we see a simple output single double quotation mark instance bar.
Home we look
1. Arrays in PHP
Instead of thinking about arrays in PHP as "arrays" in our narrow sense, I think we might as well put this array in Split, accesses than either as our regular array, accesses than either for our dictionary.
2. Creating an arrayIf
PHP Code formatting tool http://www.waterproof.fr/products/phpCodeBeautifier/
Recently modified a code, there is no indentation, with this can be formatted a bit.
Equivalent to the previous C indent
By the way, write about other languages.
C, C + +
The following code implements the ability to include different files depending on the file name of the browser's address bar parameter.
Copy CodeThe code is as follows:
$file _name = $_get["filename"]; Get the current file name
Include ("$file
Numbers, floating-point, Boolean are value types, English: int, float, bool, so you know how they're used.
such as statements: $FA = 3.14;
String and array are reference types, that is, they are placed in the stack as an address, when
First, the installation of MySQL
Running the MySQL installer (mysql-essential-5.1.40-win32.msi)
Select the installation type is Custom
Click the Change button to make changes to the installation directory
Change the installation directory to D
I've probably conceived it, and there are two options:
1. JavaScript to determine the browser language of the visitors, if the Chinese system, natural users are Chinese, jump Chinese website;
If the non-Chinese system, the default user is not
Copy CodeThe code is as follows:
function Authcode ($string, $operation = ' DECODE ', $key = ", $expiry = 0) {
$ckey _length = 4; Random key length value 0-32;
Join with the secret key, you can make ciphertext no rules, even if the original and key
First, Introduction
In the speed, static page than dynamic page analogy PHP much faster, there is no doubt, but because the static page flexibility is poor, if not with the use of database or other equipment to save relevant information, the overall
Finally Emperor not bear, the answer or let me find.
It's all on the Internet.
Copy CodeThe code is as follows:
$content = Iconv ("Utf-8", "gb2312", $content);
In fact, it is also right, looking at the Utf-8 is actually converted into gb2312,
PHP saves data to MySQL
It is intended to clean up the data before it is put into the DAO layer, such as varchar for trim,int intval.
One day it suddenly occurred to me that PHP intval the same value range as the MySQL int type?
Check it out, not
Mysql.class.php file See http://www.jb51.net/article/25496.htm
Copy CodeThe code is as follows:
Includes MySQL operation class
Include_once ' Mysql.class.php ';
Local MySQL Data
$mysql _local_data = Array (' db_host ' = ' localhost ',
' Db_user '
Looping through the creation of directory methods
This will generate the Image.gif directory
Copy CodeThe code is as follows:
$filepath = "Test/upload/2010/image.gif";
Mk_dir ($filepath);
Looping through the creation of catalogs
function Mk_dir
The first thing to know is PHP exceptions?
An exception (Exception) is used to change the normal process of a script when a specified error occurs.
PHP 5 provides a new approach to object-oriented error handling.
Exception handling is used to
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