Merhaba,
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=14 GROUP BY servis_kayit.teslim_tarih
şeklinde bir sorgum var. sorgunun phpmyadmin deki görüntüsü ise
şeklinde.
buraya kadar herşey normal bir şekilde çalışıyor.
<?
if(empty($_GET['ad'] )) {
echo "Önce Müşteri gerekli";
} else {
$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'];?></td>
</tr>
<?php } ?>
</tbody>
</table>şeklinde ise php kodlarım bulunmakta.
bunun sonucu ise:
yalnız buradaki çözemediğim sorun şu. tarihler tekrar etmeden tek tarih yanında yapılan işlemlerin görünmesi.
bunu nasıl çözerim?