10 days to learn the nineth day of PHP

Source: Internet
Author: User
Purpose of study: matters needing attention

Because I was first to learn ASP, so do PHP when you will find that many places need to adapt.

1, pay attention not to miss the semicolon
2, pay attention not to miss the variable before the $
3, use the time of session to pay attention not to omit session_start ();

If an error occurs, you can use the following methods:
1, if it is an error in the SQL statement, then the output of the SQL statement, note that you also want to comment on the subsequent execution of the SQL statement
2, if the variable is empty, most of it is not passed in place, output variables check, check the ID and name of the form
3, if the database connection error, check to open my SQL correctly and whether the connection statement is missing
4, pay attention to indentation, excluding the parentheses do not match the error

In the big Web site, my idea is to first build a database, determine the role of each field, and the relationship between the table. Then design the background interface, starting from the addition of data, because the success of the addition can be directly to the database validation, do add and do the display of the page, and finally the combination of the two. Generally speaking, the background includes adding delete changes and shows, the backstage no problem, the front desk is not a big problem. The front desk also needs to be aware of security and fault tolerance as well as the output format.

All right, here we are today. If you use PHP to upload files and send emails.




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.