-2
I have a database where I insert my students' grades. But I would like these notes to be shown in the virtual bulletin as follows:
Banknotes from 0 to 25 = Red
Banknotes from 26 to 50 = Yellow
Banknotes 51 to 75 = Blue
Banknotes 76 to 100 = Green
When the student enters his virtual bulletin, he will have his notes with colors upon his performance.
But I have no idea how to perform such a task.
If friends can give me a tip on how to proceed, or even where I can learn how to do
I do not know if I have been able to make myself understood, but I am willing to clarify any doubts.
You will build a table dynamically with php for data display?
– Pedro Filipe
Independent of PHP or Javascript, this with logic would solve, comparing the value and, in a list, display the color
– William Aparecido Brandino
Just like @Williamasimiliar said, the logic is this. Compare the value and assign a css class to the element that will encompass the note.
– Hamurabi Araujo
Murilo, did any of the answers solve your problem?
– Sergio