<table> <tr> <td><?php /* read data */?></td> <td><?php /* read some other data */?></td> </tr> </table>
... or should everything be PHP?...
echo "<table>"; echo " <tr>"; /* etc */ echo " </tr>"; echo "<table>";
I'd inclined to choose the first option. (Unless there is a better option, like separating HTML from PHP even further.)
And a slightly unrelated question: if a page has no PHP code, is there any reason not to give it a HTML extension?
This post has been edited by diego_pmc: 20 January 2011 - 07:05 AM