Ten Days Learn the Ninth Day of PHP

xiaoxiao2021-03-06  37

Because I am learning ASP, I will find a lot of places to adapt when doing PHP.

1. Be careful not to miss the semicolon

2, pay attention not to miss the $ 4 before the variable

3. Be careful not to miss the session_start () when using session.

If an error occurs, the following methods can be used:

1. If it is a SQL statement error, comment, then output the SQL statement, pay attention to the subsequent execution SQL statement

2, if it is empty, most of them are not passed to the position, the output variable checks, check the ID and Name of the form

3, if it is a database connection error, check if the MY SQL is turned on correctly and whether the connection statement is missing

4, pay attention to indentation, exclude the incorrection of brackets

When I am doing a big website, my idea is to build a database to determine the role of each field, and the relationship between tables. Then design the background interface, start from the addition of the data, because the addition of success can be verified directly to the database, do a good job, and do the addition to the displayed page, and finally the combination of the two. Generally speaking, the background includes adding deletion modifications and display, there is no problem in the background, and there is no big problem in the front desk. The front desk also needs to pay attention to security and fault tolerance and the output format.

Ok, I am here today, I will talk to PHP and send mail tomorrow.

转载请注明原文地址:https://www.9cbs.com/read-57579.html

New Post(0)