Ten days to learn the ninth day of php _ PHP Tutorial

Source: Internet
Author: User
The ninth day of learning php in ten days. Objective: to learn more, I learned ASP first, so I will find many things to adapt to when I do PHP again. 1. do not miss the semicolon. 2. do not miss the $ learning objective before the variable. note:

Because I learned ASP first, I will find many places to adapt when I do PHP again.

1. do not miss a semicolon
2. do not miss the $
3. do not omit session_start () when using SESSION ();

If an error occurs, you can use the following methods:
1. if an error occurs in an SQL statement, comment out and output the SQL statement. Note that you must also annotate the subsequent execution of the SQL statement.
2. if the variable is empty, most of them are not passed in place. check the output variable and check the form id and name.
3. if a database connection error occurs, check whether my SQL is correctly opened and whether the connection statements are omitted.
4. pay attention to indentation and eliminate the error of unpartitioned brackets.

When creating a large website, my idea is to first build a database to determine the role of each field and the relationship between the table. Then design the background interface, starting from adding data, because the addition is successful or not, it can be verified directly in the database, the page for adding and displaying is completed, and finally the combination of the two. In general, the background includes adding, deleting, modifying, and displaying. there is no problem in the background, and there is no major problem in the foreground. The front-end also needs to pay attention to security and fault tolerance, as well as the output format.

Now, let's talk about uploading files and sending emails in PHP tomorrow.

Because I learned ASP first, I will find many places to adapt when I do PHP again. 1. do not miss the semicolon. 2. do not miss the $...

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.