");
print("
");
while($rowdbh1=mysql_fetch_array($querydbh1)){
print "";
print "| $rowdbh1[kd_customer] | ";
print "$rowdbh1[nama] | ";
print "$rowdbh1[alamat] | ";
print "".number_format($rowdbh1[total],0,',','.')." | ";
print "$rowdbh1[poin] | ";
print "
";
$total1 = $rowdbh1['total'];
$poin1 = $rowdbh1['poin'];
}
print("
");
//amigo02
print("
");
while($rowdbh2=mysql_fetch_array($querydbh2)){
print "";
print "| $rowdbh2[kd_customer] | ";
print "$rowdbh2[nama] | ";
print "$rowdbh2[alamat] | ";
print "".number_format($rowdbh2[total],0,',','.')." | ";
print "$rowdbh2[poin] | ";
print "
";
$total2 = $rowdbh2['total'];
$poin2 = $rowdbh2['poin'];
}
print("
");
//amigo03
print("
");
while($rowdbh3=mysql_fetch_array($querydbh3)){
print "";
print "| $rowdbh3[kd_customer] | ";
print "$rowdbh3[nama] | ";
print "$rowdbh3[alamat] | ";
print "".number_format($rowdbh3[total],0,',','.')." | ";
print "$rowdbh3[poin] | ";
print "
";
$total3 = $rowdbh3['total'];
$poin3 = $rowdbh3['poin'];
}
print("
");
//amigo04
print("
");
while($rowdbh4=mysql_fetch_array($querydbh4)){
print "";
print "| $rowdbh4[kd_customer] | ";
print "$rowdbh4[nama] | ";
print "$rowdbh4[alamat] | ";
print "".number_format($rowdbh4[total],0,',','.')." | ";
print "$rowdbh4[poin] | ";
print "
";
$total4 = $rowdbh4['total'];
$poin4 = $rowdbh4['poin'];
}
print("
");
//amigo05
print("
");
while($rowdbh5=mysql_fetch_array($querydbh5)){
print "";
print "| $rowdbh5[kd_customer] | ";
print "$rowdbh5[nama] | ";
print "$rowdbh5[alamat] | ";
print "".number_format($rowdbh5[total],0,',','.')." | ";
print "$rowdbh5[poin] | ";
print "
";
$total5 = $rowdbh5['total'];
$poin5 = $rowdbh5['poin'];
}
print("
");
//amigo06
print("
");
while($rowdbh6=mysql_fetch_array($querydbh6)){
print "";
print "| $rowdbh6[kd_customer] | ";
print "$rowdbh6[nama] | ";
print "$rowdbh6[alamat] | ";
print "".number_format($rowdbh6[total],0,',','.')." | ";
print "$rowdbh6[poin] | ";
print "
";
$total6 = $rowdbh6['total'];
$poin6 = $rowdbh6['poin'];
}
print("
");
//amigo07
print("
");
while($rowdbh7=mysql_fetch_array($querydbh7)){
print "";
print "| $rowdbh7[kd_customer] | ";
print "$rowdbh7[nama] | ";
print "$rowdbh7[alamat] | ";
print "".number_format($rowdbh7[total],0,',','.')." | ";
print "$rowdbh7[poin] | ";
print "
";
$total7 = $rowdbh7['total'];
$poin7 = $rowdbh7['poin'];
}
print("
");
//amigo08
print("
");
while($rowdbh8=mysql_fetch_array($querydbh8)){
print "";
print "| $rowdbh8[kd_customer] | ";
print "$rowdbh8[nama] | ";
print "$rowdbh8[alamat] | ";
print "".number_format($rowdbh8[total],0,',','.')." | ";
print "$rowdbh8[poin] | ";
print "
";
$total8 = $rowdbh8['total'];
$poin8 = $rowdbh8['poin'];
}
print("
");
//amigo09
print("
");
while($rowdbh9=mysql_fetch_array($querydbh9)){
print "";
print "| $rowdbh9[kd_customer] | ";
print "$rowdbh9[nama] | ";
print "$rowdbh9[alamat] | ";
print "".number_format($rowdbh9[total],0,',','.')." | ";
print "$rowdbh9[poin] | ";
print "
";
$total9 = $rowdbh9['total'];
$poin9 = $rowdbh9['poin'];
}
print("
");
$total_blj = $total1+$total2+$total3+$total4+$total5+$total6+$total7+$total8+$total9;
$total_poin = $poin1+$poin2+$poin3+$poin4+$poin5+$poin6+$poin7+$poin8+$poin9;
print("
");
print "";
print "| Total Belanja | ";
print "".number_format($total_blj,0,',','.')." | ";
print "
";
print "";
print "| Total Poin | ";
print "".number_format($total_poin,0,',','.')." | ";
print "
";
print("
");
print("