I am trying to figure out how to do tables in php. I am working on this..
$balance=55.75;
$newShirtCost=15.75;
$earns=20.00;
$bar=.55;
echo "Starting balance:$balance";
$balance= $balance -$newShirtCost;
echo "<p>Purchase: Clothing Store:".sprintf("$%.2f",$balance)."</p>";
$balance=$balance+$earn;
echo "<p>ATM Deposit:".sprintf("$%.2f",$balance)."</p>";
$balance=$balance/2;
echo "<p>Balance after split with wife:".sprintf("$%.2f",$balance)."</p>"
This is suppose to be display in a table. I am a newbie at php I am not looking for the answers just someone to explain to me how it is possible i know the table format which is
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
But I just dont understand how to put the two together.