Newbie Spellweaver
- Joined
- Jul 7, 2005
- Messages
- 20
- Reaction score
- 1
im not php coder, i know litle on its basic.
its hard for me to print the $total and $remain. please correct the syntax im using,
$total=$donate+$suport;
$remain=$total-$expense;
this is the code and the liveview,
its hard for me to print the $total and $remain. please correct the syntax im using,
$total=$donate+$suport;
$remain=$total-$expense;
this is the code and the liveview,
PHP:
<?php
$donate1 = mssql_query("SELECT donate from Pos");
$donate= mssql_fetch_row($donate1);
$expense1 = mssql_query("SELECT expense from Pos");
$expense= mssql_fetch_row($expense1);
$support1 = mssql_query("SELECT support from Pos");
$support= mssql_fetch_row($support1);
$total=
$remain=
?>
<article class="rankingWrap">
<ul class="shadowz" style="width:200px;">
<li class="du">Server Funds/Expenses</li></ul>
<table width="100%" class="rankTable" align="center">
<thead>
<tr>
<th width="20%"><b>Donate Funds</b></th>
<th width="20%"><b>Sponsor</b></th>
<th width="20%"><b>Total Funds</b></th>
<th width="20%"><b>Total Expenses</b></th>
<th width="20%"><b>Remaining Funds</b></th>
</tr>
</thead>
<tbody>
<?php
echo'
<tr align="center">
<td>'.$donate[0].'</td>
<td>'.$support[0].'</td>
<td>'.$total[0].'</td>
<td>'.$expense[0].'</td>
<td>'.$remain[0].'</td>
</tbody></table></article>
</tr>'; ?>