A modified PHP program. thank you!

Source: Internet
Author: User
A modified PHP program. thank you!
         
                 
                  
 


In this way, can I use for to display information of all the queried rows? Why so many ? Is it a bad idea? The original code was written by someone else. I just changed it.


Reply to discussion (solution)

This is a nested loop. it is estimated that your logic is wrong. you should first save the data in the database in the array, and then output the data in a loop, but now you have repeated output.

Why? Why is repeated output? Can I jump out of the loop in my?

You don't know the result after running your code.

Add at the beginning of your program
Error_reporting (E_ALL );

You can see what went wrong!

  
         
                 
                  
 

So what? PHP is not installed on my computer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.