https://i.hizliresim.com/P7RM19.jpg
Tablodan gelen veriyi şu şekilde yazdrdık.
$uresim = $row_detay['urun_id'];
mysql_select_db($database_config, $config);
$query_resim = "SELECT * FROM urun_resimleri where urun = $uresim";
$resim = mysql_query($query_resim, $config) or die(mysql_error());
$row_resim = mysql_fetch_assoc($resim);
$totalRows_resim = mysql_num_rows($resim);
<div class="row">
<?php if ($totalRows_resim > 0) { // Show if recordset not empty ?>
<?php do { ?>
<div class="col-lg-3">
<div class="imgbt">
<a href="#">
<img class="projeimg" src="upload/urun_resimleri/<?php echo $row_resim['urun_resim']; ?>" alt="resim">
</a>
</div>
<div class="btnpr">
<a href="#">
<span class="projeteix"><?php echo $row_resim['urun_detay']; ?></span>
</a>
</div>
</div>
<?php } while ($row_resim = mysql_fetch_assoc($resim)); ?>
<?php } // Show if recordset not empty ?>
</div>Sonuçhttps://i.hizliresim.com/00PDrB.jpg
Mesela urun bir adlı resme tıkladığımızda ilgili resmin id'sine ait veriyi ayrı bi sayfada yazdırmak istiyorum ne yapmalıyım.
