You can escape HTML from the PHP delimiter and echo the value in their specific ''. Example below:
<? php
/* Shuawna Norris
June 13, 2011
Part two
Working with money
*/
$balance=55.75;
$newShirtCost=15.75;
$earns=20.00;
$bar=.55;
?>
<body>
<h1>Balance</h1>
<TABLE border=’1’>”;
<tr><td colspan="3">Starting balancebalance</td></tr>
<tr>
<td>Purchase: Clothing Store:<?php echo sprintf("$%2f", ($balance-$newShirtCost)); ?></td>
<td>ATM Deposit: <?php echo sprintf("$%2f", ($balance+$earn)); ?></td>
<td>Balance after split with wife: <?php echo sprintf("$%.2f", ($balance/2)); ?></td>
</tr>
</table>
</body>
This is more readable and easy to maintain.
Zero13
Practically a Master Poster
624 posts since Jan 2009
Reputation Points: 120
Solved Threads: 139