prepare("SELECT * from urunler where urun_id=:urun_id"); $urunsor->execute(array( 'urun_id' => $_GET['urun_id'] )); $uruncek=$urunsor->fetch(PDO::FETCH_ASSOC); $urunresimsor=$db->prepare("SELECT * from resim where resim_urun=:resim_urun"); $urunresimsor->execute(array( 'resim_urun' => $uruncek['urun_id'] )); ?>