PHP learning notes: precautions

xiaoxiao2021-03-06  89

Precautions:

First, be careful not to miss the semicolon (from ASP to the most likely this)

Second, be careful not to miss the $ 20 before the variable

Third, pay attention not to session_start () when using the session.

If an error occurs, the following method can be used.

First, if the SQL statement is wrong, comment, then output the SQL statement, pay attention to the subsequent SQL statement.

Second, if the variable is empty, most of which is not passed to the position, the output variable checks, check the ID and Name of the form.

Third, if the database link is incorrect, check if mysql and whether the connection statement is missing.

Fourth, pay attention to indentation, exclude incorrect mistakes in parentheses.

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

New Post(0)