PHP:
<?php
mysql_connect('localhost','******','******');
mysql_select_db('*****');
$bilgi=mysql_query("SELECT * FROM urunler WHERE id='$_GET[id]' ");
$bilgi=mysql_query("SELECT * FROM urunler ORDER BY id DESC ");
$kontrol = mysql_num_rows($bilgi);
while($satir=mysql_fetch_array($bilgi))
{
echo "_______________________";
echo "<br>";
echo "<font size=\"4px\">";
echo '<a href="urunler.php?id='.$satir["id"].'">'.$satir["urunismi"].'</a>';
echo $satir['urunisim'] ;
echo "</a>";
echo "</font>";
echo "</br><font size=\"2px\">";
echo $satir['tarih'] ;
echo "</font></br>";
echo "<font size=\"3px\">";
echo "Yaş: ";
echo $satir['yas'] ;
echo "</font>";
echo "<br>";
echo "_______________________";
}
?>
$bilgi=mysql_query("SELECT * FROM urunler WHERE id='$_GET[id]' ORDER BY id DESC ");
Bu hale getirdim o bölümü şimdi sadece adres çubuğuna id değeri verince gösteriyor. Hepsini birden göstermiyor. Asıl sorun o değil. Bu ürün ismi link haline gelmiyor...
Son düzenleme: