Php table problems

Source: Internet
Author: User
For questions about the php table, please refer to the following link for a PHP example ~ If a table needs to be created so that the maximum number of data entries in each row is colored, what can be done ?? Thank you! & gt; & lt; --------------------------------- php table questions
Please refer to the following link for a PHP example, which shows the output table ~ If a table needs to be created so that the maximum number of data entries in each row is colored, what can be done ?? Everyone else> <


----------------------------------------------




Photo Segmentation Table


Photo Segmentation Table
Echo"



































";Echo" ";Require ("use_mysql.php ");$ Query = "SELECT p1, p2, p3, p4, p5 FROM text order by no desc limit 0, 10 ";$ Result = use_mysql ($ query );While ($ row = mysql_fetch_array ($ result )){?> $ E = $ row ['p1'];$ F = $ row ['P2'];$ G = $ row ['p3'];$ H = $ row ['p4 '];$ I = $ row ['P5 '];Echo" ";Echo" ";Echo" ";Echo" ";Echo" ";Echo" ";Echo" ";?> }?>Change the data volume $ e $ f $ g $ h $ I to perform the data size ratio, and show the number of characters in each row as the primary color.> <required?------ Solution --------------------Circulating$ K = array_search (max ($ row), $ row );$ Row [$ k] = "{$ row [$ k]}Echo' ';Foreach ($ row as $ v) echo" ";Echo' ';
No.1 score No. 2 score No. 3 score No. 4 score No. 5 score
'{$ E }''{$ F }''{$ G }''{$ H }''{$ I }'
'$ V'

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.