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 $...