am running a script but with 2 variables I get 2 different figures for what should be the same.
Code: Select all
while (!$recordSet3->EOF) {
$auftrag_id = $recordSet3->fields['auftrag_id'];
$text = $recordSet3->fields['text'];
$preis = $recordSet3->fields['preis'];
$total = $total+$preis;
$total = number_format($total,2);
echo '/'.$total;
$preis = number_format($preis,2);
$preis = str_replace(",",".",$preis);
$preis = str_replace(".",",",$preis);
$counter = $counter+1;
$pdf->Cell(60,0,$auftrag_id,0,0,'L');
$pdf->Cell(60,0,$text,0,0,'L');
$pdf->Cell(30,0,$wpreis,0,0,'R');
$pdf->Cell(30,0,$preis.' '.$currenc,0,0,'R');
$pdf->Ln(4);
$recordSet3->MoveNext();
}