What is the best way to set different colors for every row generated by a CURSOR in PL/SQL.
The colors are for HTML table rows. I basically do
<tr bgcolor="blue">-->Row 1
<tr bgcolor="red">---->Row 2
My 1st reqt is to do different color every row on one webpage.
My 2nd reqt is to do different color for every group of rows whenever a book number changes on anotehr webpage.
For example, if book No. 1000 has 3 rows it will have one color and the next set of rows for following book No. 1001 will have a different color.
I was thinking of adding a counter in the CURSOR and using MOD() function to decide on color for the first case. For 2nd case it seems the code needs to check current book value with previous book value to set the color.
Any ideas or best practice for this.