Cite the example of the "Star Prodigal" php Chinese Document:
Chat room is the secret weapon of the Web station to send boring people. At the same time, the webmaster or other personnel can also be killed in this place. Even a vigorous network love,
In Access, you can easily import the data from the text into the table, which is not easy to use in MySQL, but it is also very simple.
First, the data records are sorted by row and are separated by specific characters such as: ","
The record form is
Author: Sun Sports
Another type of "if-else" family control statement function is almost the same as the PHP "switch" statement. It looks as follows:
--------------------------------------------------------------------------------
Switch
Let's talk about the experience of setting up a personal website. Please correct me if you are not in the wrong place.
An edit debugging environment
Win98 local editor debugging, cool? First the next omnihttpd proffesinal V2.06, installed on the PHP4
Author: Sun Sports
PHP also gives you a way to deal with a variety of possible ways-the "IF-ELSEIF-ELSE" structure. A typical "IF-ELSEIF-ELSE" structure statement would look like this:
---------------------------------------------------------------
Okey.php mainly handles the information processing of user login and release
if ($username)//whether there is user information
$useinfo = $username. "|". $userpass;
Setcookie ("Flyfoxnet", $useinfo, Time () +3600);
if ($d ==q) Setcookie
How to install php4.04--under Win2K I think the better way
PHP4.04 already bigger than 4.0, after unpacking more than 9M, DLL file into more than 50, the original house Orso near an article "Windows 2000 installation PHP4 and MySQL big reveal", I
Author: Sun Sports
In addition to the "if" statement, PHP provides a "IF-ELSE" structure that defines the PHP code that executes when the condition in the statement is described as a value of "false".
The "IF-ELSE" structure is used in the
1.upfile.php file
File Upload
2.upload.php
Gets the current date information and joins it as a string
$datetime = getdate ();
$time = Implode ("", $datetime);
Construct file name
$filename = "uploadfiles/". $time. " ". $upfile
When you write access to MySQL database program, is not very troublesome: a large set of functions and parameters, but also to check the results of the call, the more headaches is that each program contains the database name, user, password, etc.,
Guest Home: class/guest.php
Welcome to Class 94 Class 1 Yearbook
GMT
Hello, Guest! You can only browse class photos and campus scenery at present. Please leave your
This forum used a total of less than 200 lines of code, execution speed quite fast. Running examples in: Http://www.hnpts.ha.cn/forum
MySQL Database: yxforum
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null |
$pagesize = 3;//Set the number of displays per page
Calculate the total number of records
$rs _num = "SELECT count (*) as ID from table";
$rs _num = odbc_exec ($conn _id, $rs _num);
$rs _num = Odbc_result ($rs _num, "id");
Calculate Total
This program will be the Chinese date output for 2001-12-23, and good to solve the "ten" problems, such as "11" and "21" in the "Ten" Treatment! A slight modification can be changed to a function.
$str = "December 23, 2001";
echo $str. "
"; $flag
Author: Sun Sports
Now, you've learned that PHP allows you to nest conditional statements. However, if you look at the example that is used to demonstrate this concept, you will agree that it is both complex and frightening.
----------------------
4. User module Design
For the underlying database, call the MySQL C API function to modify the database, internal storage
A certain state variable (such as a user name, or is it left to the previous layer to complete?) ), on the previous layer,
Yesterday saw a post (chinaasp) asked how to delete the directory, has been able to, but yesterday there was a problem, the original he just deleted his subordinate files after the deletion
directory So if there are several levels there is a
Use "| | |" When writing a file To separate each record, "| |" Used to separate fields in a record
If a record is represented as $str 1= $name. "| |". $pass. "| |". $title. "| |". $message. "| |". .........
Then connect record one and record two
Although this code is short, but very useful, it can easily establish the directory you specified in the specified suffix file hyperlink, and can be set, will not be the specified directory home page navigation.
function NavBar () {
$files = Dir ("
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