How to assign the record set queried by the database to the table

Source: Internet
Author: User
How can I assign the record set queried by the database to the table query database and return the record set? but how can I display the returned record set in the table? Html, php, and javascript can be implemented. it is best to describe the details with sample code. ------ Solution ------------------ & lt; table & nbsp; & gt; & lt; t how to assign the record set queried by the database to the table
Query the database and return the record set. but how can I display the returned record set in a table? Html, php, and javascript can be implemented. it is best to describe the details with sample code.

------ Solution --------------------
































Reference:
If I have created a table first, the query results are assigned to the table dynamically. some cells in the table do not have the data to be queried. Therefore, we need to assign values to these cells, how can this change be done?

While ($ row = mysql_fetch_array ($ result )){?> }?>------ Solution --------------------Add a judgment. $ row ['idnum'] = empty ($ row ['idnum'])? & Quot; 00.0000 & quot;: $ row ['idnum'];
Name Gender ID card Shipping Address Contact number Expected quota Apply for bank Application time Delete row
'"> Delete

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.