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"
| No.1 score |
No. 2 score |
No. 3 score |
No. 4 score |
No. 5 score |
";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"
| '{$ E }' | ";Echo"
'{$ F }' | ";Echo"
'{$ G }' | ";Echo"
'{$ H }' | ";Echo"
'{$ I }' | ";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"
| '$ V' | ";Echo'
';