Dear teachers, hello, Daniel, I am following the video to learn, the video master can be displayed normally, but if I follow the operation, I can only run half of the source code, and the other half is directly displayed on the page in text format! It’s my first day to come into contact with PHP and programming, so I don’t know much about the technical aspects. However, I changed two computers and the results were the same. Even if I didn’t use the source code sent by the video host, the result would be the same. Even when I looked at the source code of the page, it showed The fonts are different. When copied to Word, the fonts are the same. Then I tried to delete the first line of code under while, and still only ran half of the code. The difference was that this time the original second line of code under while was run. How should I solve it? Please give advice from experts and teachers. Thank you very much!
The problem has been solved, thank you everyone!
First check if $id has a value, then modify the 18th line of code, take out $id, put it outside the double quotes, connect it with a decimal point, and finally print $result to see if there is a value. .