Reply. php (used to reply to a topic) problem If (! $ Cook_user){Echo " ";}Else {include ("connect. inc. php ");$ Query = "select * from my_user where user = '". $ cook_user. "' and password = '". $ cook_password ."'";$ Res = mysql_query ($ query
Due to the shortage of MySQL resources in China, it is neither too slow nor open to Chinese users. Therefore, in the days without MYSQL, it is more difficult for us to do something that is convenient for others and improve our websites. To get rid
News from yahoo.com.cn [experiment Only]There are many programs for intercepting homepage news, but they cannot be successful.They work in two ways: one is to use the backend database interface called backend for some websites, and the other is to
Config. php file// Your username and password, as well as the database name, and table name are defined here !!!// For fear that the user name and password will be viewed by others through the browser, the php extension will be used, so you will not
Recently, when reading a cool man's code, I saw a very useful function: extract (). Its main function is to expand the array and use the key name as the variable name, the element value is a variable value, which provides another convenient tool for
Instance code:Copy codeThe Code is as follows:/****************************************** ******************** Read Me* Article pagination** Paging mode: Paging by words, line feed, and special mark* In fact, the implementation idea is the same,
Copy codeThe Code is as follows:/*** Quick sort***/Function sort_quick ($ arrData ){If (empty ($ arrData) |! Is_array ($ arrData) return false;$ Flag = $ arrData [0];$ Len = count ($ arrData)-1;If ($ len = 0) return $ arrData; // if only one data
Environment:-Apache 2.2.6-PHP 5.2.5-SQL Server 2005-Windows XP SP2Steps: 1. Configure PHP5 to connect to ms SQL Server as usual2. Download the correct version of ntwdblib. dll (2000.80.194.0). Note that this version number does not work for this
Although this feature is very easy to program using PHP, it also has an important drawback: When you need to test the type of a variable, the language with loose processing types is confusing. Fortunately, PHP developers noticed this situation and
Copy codeThe Code is as follows:$ A = array ('A', 'B', 'C');Require 'template/demo. php'; // reference the template?> Template file:Copy codeThe Code is as follows: template test Copy codeThe Code is as follows:Key Value: // Array Iteration//
Copy codeThe Code is as follows:Echo 'in in time: '. $ begin = microtime (false).' '; // begin to count time$ Array = array ();For ($ I = 1; $ I $ Array [$ I] = $ I;}/*$ Arr = $ array; // the total time for copying and printing data is 0.02.Foreach
Copy codeThe Code is as follows:/*************************************** ******* Function name: curl_string ($ url, $ proxy)* For Use: Check the proxy IP Address* Author: Li feilin* Date: 2011-11-09*****************************************
IntroductionThe observer mode defines the one-to-many dependency of an object. In this way, when an object changes its status, all its dependent persons will receive notifications and update them automatically!Design principlesIn the observer mode,
Recently, I made a voting system for the entertainment portal, which is also overwhelmed by votes. All available methods are used. However, they are not ideal. Finally, I figured out the following method and made a flowchart to share with you.If you
Copy codeThe Code is as follows:/** File name: linearList. php* Function: sequential storage of linear tables with Data Structures* Author: Li jinhuan* @ Copyright: www.drw1314.com*/Class linearList {Private $ arr;Private $ length;Const MAXSIZE = 100
We can see that someone adds a 'or any halfwidth symbol to the front of a Chinese character string to let the bug remove it, but this is too troublesome. Finally, we can find a function to simulate the fgetcsv function.Copy codeThe Code is as
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