Skip to content
Advertisement

php – fpdf select case $row

I am using FPDF and have the following code:

JavaScript

I would like to have select case and have something like that:

JavaScript

I would like to have to each row of data different style, and since I know that the rows are repeating every 7 rows, I can have a loop and make selection.

Advertisement

Answer

This should provide you the details to move forward. It wasn’t clear from what you provided what type of styling you were going to do for each of the 7 row styles so I simply put in a comment for each of the possibilities.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement