$id = $_GET['id'];
$query = mysql_query("SELECT * FROM urunler WHERE urun_kodu = '{$id}'");
if ( mysql_affected_rows() ){
$result = mysql_fetch_assoc($query);
echo $result['urun_adi'];
}
?>
Konu: Php Veri yazdırma Sorunu
$id = $_GET['id'];
$query = mysql_query("SELECT * FROM urunler WHERE urun_kodu = '{$id}'");
if ( mysql_affected_rows() ){
$result = mysql_fetch_assoc($query);
echo $result['urun_adi'];
}
?>