Как изменить цвет ячейки таблицы в зависимости от ее значения PHP MySQL? [дубликат] ⇐ Php
-
Anonymous
Как изменить цвет ячейки таблицы в зависимости от ее значения PHP MySQL? [дубликат]
I am fetching data from the MySQL database and displaying it on a HTML table. I want to change the cell background color based on cell value with php.
I already went through with this answer how to change table cell color depending on values in php But this is not an answer to my question. In this answer comparing values by column by column. in my situation, I cannot do that because I have 32 columns in my table. Dep 1 to Dep 32. I tried to do that with the in_array function.but its now working.
Here is my idea Please refer to this image
No data found Plese help me. i am new to programming
Источник: https://stackoverflow.com/questions/781 ... -php-mysql
I am fetching data from the MySQL database and displaying it on a HTML table. I want to change the cell background color based on cell value with php.
I already went through with this answer how to change table cell color depending on values in php But this is not an answer to my question. In this answer comparing values by column by column. in my situation, I cannot do that because I have 32 columns in my table. Dep 1 to Dep 32. I tried to do that with the in_array function.but its now working.
Here is my idea Please refer to this image
No data found Plese help me. i am new to programming
Источник: https://stackoverflow.com/questions/781 ... -php-mysql
Мобильная версия