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.