01.
<?
while
((
$row_Recordset1
= mysql_fetch_assoc(
$Recordset1
))){
02.
$total
=
$total
+
$row_Recordset1
[
'tot'
];
03.
?>
04.
05.
<tr>
06.
<td><?php
echo
$row_Recordset1
[
'txtCustomerID1'
]; ?></td>
07.
<td><?php
echo
$row_Recordset1
[
'txtname1'
]; ?></td>
08.
<td><?php
echo
$row_Recordset1
[
'txtdeedid'
]; ?></td>
09.
<td><?php
echo
$row_Recordset1
[
'txtlandnumber'
]; ?></td>
10.
<td><?php
echo
$row_Recordset1
[
'txtpage'
]; ?></td>
11.
<td><?php
echo
$row_Recordset1
[
'txtprovince_name'
]; ?></td>
12.
<td><?php
echo
$row_Recordset1
[
'txtamphur_name'
]; ?></td>
13.
<td><?php
echo
$row_Recordset1
[
'txtdistrict_name'
]; ?></td>
14.
<td><?php
echo
$row_Recordset1
[
'txtcontract'
]; ?></td>
15.
<td><?php
echo
$row_Recordset1
[
'txtdate_contract'
]; ?></td>
16.
<td><?php
echo
$row_Recordset1
[
'tot_contract'
]; ?></td>
17.
<td><?php
echo
$row_Recordset1
[
'tot_tax'
]; ?></td>
18.
<td><?php
echo
$row_Recordset1
[
'tot'
]; ?></td>
19.
</tr>
20.
<?php };?>
21.
<?php
echo
"ราคารวม = "
.number_format(
$total
).
" บาท"
;?>