#1
Yes I can see the usefulness of having the header repeated at the bottom - although it could be confusing also where there is no data below it.
If
<thead>
<tbody>
<tfoot>
etc are all required as best practise then these are worthy additions - and would give more scope to the theme css
#2
I prefer the first - there is no <?php ?> in it. In webERP scripts mostly there is just a single <?php at the start and a single ?> at the end!!
I would have it indented though:
Code:
echo '<div>
<h3>' . $title . '</h3>
</div>';
Shouldn't there be a ; after echo $title;
Code:
?>
<div>
<h3><?php echo $title;?></h3>
</div>
<?php
I strongly prefer to stay inside the php interpretor than continually go in and out.
I prefer the readability of the :
Code:
echo '<div>
<h3>' . $title . '</h3>
</div>';
over
Code:
?>
<div>
<h3><?php echo $title;?></h3>
</div>
<?php
but really the difference is minimal - and certainly NOT worth putting any additional effort into IMHO