Some programs are related to e-commerce. When you do this, pay attention to the invention of many places. 1. Syntax: If you are familiar with both of them, it is easy to use, but it is often used to write something with a dizzy head ,. Dajiizhi
Some programs are related to e-commerce. When you do this, pay attention to the invention of many places.
1. Syntax
If you are familiar with both of them, they are easy to use, but things that write with a dizzy head are often generated ,. We all know that the web server error messages are confused.
It is best to add a semicolon to each php sentence, even if some places can be left blank. Pay attention to the comments added to each paragraph, and the layers of different loops (especially nesting.
2. Variable
Because the original program was not written by me, I paid special attention to page forms, Sessions and other things. If the previous program was not quite clear, it would be much more troublesome.
Php is case sensitive to variables and asp is not sensitive. Therefore, it is best to develop a good habit to Standardize variables when naming them (your own specifications:-). it is best to apply option explicit in asp.
3. Page
Make all the similar content that may be displayed on different pages into a separate page, and include the content as needed to facilitate correction. We all know that the customer's request may be one day.
4. The most important thing is the function.