Merhaba arkadaşlar, takıldığım bir yer var bu konuda yardım istiyorum.

Konu özetle şöyle;

$sql = "SELECT * FROM servis_kayit JOIN servis_icerik ON servis_kayit.id=servis_icerik.servis_kayit_id JOIN urun ON servis_icerik.urun_id=urun.id WHERE servis_kayit.musteri_id='$q8' ";
}

$result = $link->query($sql);

$sonucsayisi = $result->num_rows;
if ($sonucsayisi > 0) { // sonuç varsa
echo "<h3 align='center'>SERVİS KAYITLARI</H3>";
?>

<table class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th>Servise Geliş Tarihi</th>
<th>Teslim Tarihi</th>
<th>Yapılan İşlem</th>
</tr>
</thead>
<tbody>
<?php while($row2 = $result->fetch_assoc()){ ?>
<tr>
<td><? echo tarihDuzenle($row2['alis_tarih']); ?></td>
<td><? echo tarihDuzenle($row2['teslim_tarih']); ?></td>
<td><? echo $row2['marka']; ?> <? echo $row2['urun_adi'];?> <? echo $row2['miktar'];?> <? echo $row2['fiyat'];?> <? $sayi1=$row2['miktar']; $sayi2=$row2['fiyat']; $toplam=$sayi1*$sayi2; echo $toplam; ?></td>
</tr>
<?php } ?>
</tbody>
             </table>
buradan da


şeklinde sonuç çıkıyor.

ancak ben gelen sonucun


şeklinde olmasın istiyorum. tarihi tekrar etmesine bir gerek yok. onu yok etmem lazım.

nasıl bir yol izlemeliyim

teşekkürler