Using a PHP looping structure create an HTML table The table
Using a PHP looping structure, create an HTML table.
The table is to have four rows, three cells per row.
Each cell is to have the following characteristics:
Add comments to significant sections of your script to describe the purpose of your code.
Some Hints:
* use a separate counter to keep track of the number of rows
* use the modulus operator to set the background color.
* use a CSS class to change the background color of the alternating rows.
* get the table to print correctly before changing the background color. View the html source on your generated page. Make sure there are no empty <tr></tr> tags, and that the html code is correct.
* this is more of a logic problem than an exercise in syntax - think it through
Solution
Deadline for this assignment ?