Why is only half of the source code displayed?
卟暨
卟暨 2018-07-13 21:54:37
0
3
1526

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! 1.jpg2.jpg3.jpg

卟暨
卟暨

reply all(2)
卟暨

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

  • reply Thank you for your reply. The problem has been solved!
    卟暨 author 2018-07-14 09:23:18
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template