Hey...just wondering what the norm/preferred method (if there is one) is.
So I'm wondering if I should have all my code look like this:
<?php
if($Approved == 0){
$approvedCheck = false;
}
?>
<tr>
<!--the next 8 lines set each record as the while loop passes thru it-->
<td id="date<?php echo $j;?>"><? echo $Date; ?></td>
<td id="date<?php echo $j;?>"><? echo $Hours; ?></td>
<td id="date<?php echo $j;?>"><? echo $Phase." "; ?></td>
.
.
.
.
.
</tr>
or if it is better to have it like this where ALL code is wrapped in <?php ?> tags, and all html code is echo'd:
<?php
if($Approved == 0){
$approvedCheck = false;
}
echo"<tr>";
//the next 8 lines set each record as the while loop passes thru it
echo"<td id="date<?php echo $j;?>"><? echo $Date; ?></td>";
echo"<td id="date<?php echo $j;?>"><? echo $Hours; ?></td>";
echo"<td id="date<?php echo $j;?>"><? echo $Phase." "; ?></td>";
.
.
.
.
.
echo"</tr>";
Or maybe it doesnt make any difference what so ever. I am just wondering which way other people are doing it.
thanks!