I am using echo
inside the HTML tr
tag where I am getting an error.
Here is my code
index.php
The problem is not that you are inside a table row, but that you are inside a PHP string, and the answer is: You don't.
You either:
Such:
NB: You appear to be trying to nest table rows, which isn't allowed.
You can probably dispense with the odd/even class names and just use :nth-child(odd) and :nth-child(even) in your stylesheet.
- 热议问题