PHP Page 그물 값을 표시하기 위해 내가해야 할 일을 이해하지 못했습니다.DOMPDF 계산
나에게 어떤 가치도 표시되지 않습니다. 나는 무엇을해야합니까 나를 도와주세요. PDF File
다음은 테이블 코드입니다. 테이블 하단에 운송료 순 가치가 표시되지 않습니다. 당신의 $codigoHTML
변수의 값으로을 연결보다는 $initial
의 값을 보내고
1)있어 echo
:
<table width="100%">
<tr>
<td colspan="8" class="estilo4"><CENTER><strong> <h1>Payment</h1></strong></CENTER></td>
</tr>
<tr bgcolor="black" border="1" solid #5D6975 cellspacing="0" cellpadding="0">
<th class="estilo1">'.$TRACK.'</th>
<th class="estilo1">'.$zones.'</th>
<th class="estilo1">'.$FECHA.'</th>
<th class="estilo1">'.$Mer.'</th>
<th class="estilo1">'.$DESTINA.'</th>
<th class="estilo1">'.$NUMBERPHONE.'</th>
<th class="estilo1">'.$ESTADO.'</th>
<th class="estilo1">'.$deliveryboy.'</th>
</tr>
</thead>
<tbody>
';
$sql=mysql_query("SELECT * FROM courier_online WHERE payment = 'OK' AND email='$qname' AND date BETWEEN '$desde' AND '$hasta'");
while($express=mysql_fetch_array($sql)){
$initial = 0; // Empezar a contar desde 0
$initial = $initial + $row['shipping_subtotal'];
$codigoHTML.='
<tr>
<td class="estilo3">'.$express['cons_no'].'</td>
<td class="estilo3">'.$express['shipping_subtotal'].'</td>
<td class="estilo3">'.$express['date'].'</td>
<td class="estilo3">'.$express['user'].'</td>
<td class="estilo3">'.$express['rev_name'].'</td>
<td class="estilo3">'.$express['r_phone'].'</td>
<td class="estilo3">'.$express['status'].'</td>
<td class="estilo3"></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2" style="text-align: right;" rowspan="1">
<b><?php echo $initial; ?></b>
</td>
</tr>
</tfoot>
';
}
$codigoHTML.='
</table>
코드를 포함하도록 질문을 편집하십시오. 그리고 당신의 코드 사진이 아닙니다. –
pdf 생성과 관련하여 특별한 것은 없습니다. – rtfm
'$ initial + = $ row [....]; ' – rtfm