Algo así, es instinto nomas.
Código PHP:
<html>
<body>
<?
$registros = array();
$sql = mysqli_query($link,"SELECT*FROM pendejete");
while( $row = mysqli_fetch_array($sql, MYSQLI_ASSOC) ){ $registros[] = $row; }
mysqli_close($link);
?>
<table border="1">
<tr class="title">
<th width="70">BOLETA</th>
<th width="300">CLIENTE</th>
<th width="200">SERIE MT</th>
<th width="300">MODELO MT</th>
<th width="100">CONT. TOTAL</th>
<th width="200">CONDICIÓN MT</th>
<th width="200">MOT. SERVICIO</th>
<th width="100">FECHA</th>
<th width="300">TÉCNICO</th>
</tr>
<?php
$contador = 0;
for ($i=0; $i < count($registros); $i++) {
$contador++;
$v_bole = $registros[$i]['bol_codi'];
$v_deno = $registros[$i]['ter_deno'];
$v_seri = $registros[$i]['mul_seri'];
$v_item = $registros[$i]['ite_dsit'];
$v_cont = $registros[$i]['con_tota'];
$v_cond = $registros[$i]['cma_desc'];
$v_moti = $registros[$i]['mot_desc'];
$v_feem = $registros[$i]['bol_feem'];
$v_feem = date("d/m/Y", strtotime($v_feem));
$v_repr = trim($registros[$i]['use_name'].' '.$registros[$i]['use_apel']);
?>
<tr>
<td><?=$v_bole;?></td>
<td style="<?=$bgcolor;?>"><?=$v_deno;?></td>
<td style="<?=$bgcolor;?>"><?=$v_seri;?></td>
<td style="<?=$bgcolor;?>"><?=$v_item;?></td>
<td style="<?=$bgcolor;?>"><?=$v_cont;?></td>
<td style="<?=$bgcolor;?>"><?=$v_cond;?></td>
<td style="<?=$bgcolor;?>"><?=$v_moti;?></td>
<td align="center" style="<?=$bgcolor;?>"><?=$v_feem;?></td>
<td style="<?=$bgcolor;?>"><?=$v_repr;?></td>
</tr>
<?
}
?>
</table>
</body>
</html>