I have some questions about mysql databases and php.

Source: Internet
Author: User
For some minor questions about the mysql database and php, please advise me that there are 20 pieces of data in the mysql database. However, only 16 pieces of data are displayed on my php webpage, I want to ask, why ?, The post code is king. PHPcodefor ($ I = 1; $ I & lt; = 4; $ I ++) {you have some minor questions about mysql databases and php.
My mysql database contains 20 pieces of data, but only 16 pieces of data are displayed on my php webpage. why?

------ Solution --------------------
Sticking code is king

------ Solution --------------------
PHP code
For ($ I = 1; $ I <= 4; $ I ++ ){...... If ($ I <4) // add this row $ row = mysql_fetch_array ($ result );}
------ Solution --------------------
There is no need to capture data inside the loop.

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.