How to implement tables?

Source: Internet
Author: User
How to implement tables ??? Obtain the table structure style from the database: SQLcodecol1col2col3col4aa1a21.2589aa1a22.2510aa1a25.2502aa1a21.0058aa1 how to implement the table ???
Get the table structure style from the database:
SQL code
  col1  col2   col3     col4    a     a1     a2     1.2589 a     a1     a2     2.2510 a     a1     a2     5.2502 a     a1     a2     1.0058 a     a1     a2     6.2589 b     a1     a2     7.2589 b     a1     a2     3.1247 b     a1     a2     1.3652 b     a1     a2     2.2589 b     a1     a2     1.2589 c     a1     a2     1.7278 c     a1     a2     2.4989 c     a1     a2     1.2589 c     a1     a2     3.1509 c     a1     a2     1.2500 d     a1     a2     4.2899 d     a1     a2     1.2785 d     a1     a2     5.2587 d     a1     a2     1.2536 d     a1     a2     1.2471


The following table style is displayed on the interface:
HTML code
  col2   col3     col4      col5       a1     a2     1.2589    7.2589  a1     a2     2.2510    3.1247 a1     a2     5.2502    1.3652 a1     a2     1.0058    2.2589 a1     a2     6.2589    1.2589


How can I implement it ..

The values in Col1 are all five in one group (that is, there are five identical values), and one group is one column.


------ Solution --------------------
Wood shows what the rule is. SQL is not good. Use php.
------ Solution --------------------
I didn't see any rules, but if it's like year, month, day, you can use php
For ($ I = 1900; $ I <= 2012; $ I ++)
{
Echo $ I;
}
?>
------ Solution --------------------
What is the data structure of the landlord? Is it the legendary mysql key-> value structure.

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.