Ürünleri ekleyip, id'ye göre güncelleme sayfasına çekiyorum tüm bilgiler idye ve ürüne göre doğru bir şekilde geliyor ürünü güncelle diyorum ürün güncelleme başarılı cevabını alıyorum fakat veritabanında ki bilgileri güncellemiyor. Yardımcı olabilecek birisi varmı kodu buraya bırakıyorum. şimdiden teşekkürler.

<?php    

    include("ayar.php");

    if($_GET){
    if(@$_GET["id"] ){
        


    }else{
        
        header("location:mesajlar.php");
        
    }
}
?>

            <?php 

            $id = $_GET["id"];

            $v = $db->prepare("select * from urun where urun_id=?");
            $v->execute(array($id));

            $m = $v->fetch(PDO::FETCH_ASSOC);

            ?>

            <?php 
            
                if($_POST){
                
                $urun_link                  =  $_POST["urun_link"];
                $urun_ekleyen            =  $_POST["urun_ekleyen"];
                $urun_kodu                    =  $_POST["urun_kodu"];
                $urun_oneri                =  $_POST["urun_oneri"];
                $urun_stok                  =  $_POST["urun_stok"];
                $urun_adi                =  $_POST["urun_adi"];
                $urun_marka                =  $_POST["urun_marka"];
                $urun_durum                  =  $_POST["urun_durum"];
                $urun_kategori            =  $_POST["urun_kategori"];
                $urun_gorsel1                =  $_POST["urun_gorsel1"];
                $urun_gorsel2                =  $_POST["urun_gorsel2"];
                $urun_gorsel3                =  $_POST["urun_gorsel3"];
                $urun_gorsel4                =  $_POST["urun_gorsel4"];
                $eski_fiyat                =  $_POST["eski_fiyat"];
                $yeni_fiyat                =  $_POST["yeni_fiyat"];
                $urun_detay1                =  $_POST["urun_detay1"];
                $urun_detay2                =  $_POST["urun_detay2"];
                $urun_detay3                =  $_POST["urun_detay3"];
                $urun_detay4                =  $_POST["urun_detay4"];
                $urun_detay5                =  $_POST["urun_detay5"];
                $urun_detay6                =  $_POST["urun_detay6"];
                $urun_detay7                =  $_POST["urun_detay7"];
                $urun_detay8                =  $_POST["urun_detay8"];
                $urun_detay9                =  $_POST["urun_detay9"];
                $urun_detay10                =  $_POST["urun_detay10"];
                
                
                
                if(!$urun_link || !$urun_adi || !$eski_fiyat || !$urun_gorsel1 || !$urun_detay1){
                    
                    echo '<div class="alert alert-warning">Gerekli Alanları Doldurmanız Gerekmektedir! Lütfen Alanları Doldurup Tekrar Deneyiniz.</div>';
                    echo '<div class="alert alert-success"><a href="blog.php">Bir Önceki Sayfaya Dönmek İçin Tıklayın!</a></div>';
                    
                }else {
                    
                    $guncelle = $db->prepare("UPDATE urun SET
                    
                          urun_link                         = ?,
                          urun_ekleyen                     = ?,
                          urun_kodu                         = ?,
                          urun_oneri                         = ?,
                          urun_stok                         = ?,
                          urun_adi                         = ?,
                          urun_marka                        = ?,
                          urun_durum                     = ?,
                          urun_kategori                    = ?,
                          urun_gorsel1                    = ?,
                          urun_gorsel2                    = ?,
                          urun_gorsel3                    = ?,
                          urun_gorsel4                    = ?,
                          eski_fiyat                         = ?,
                          yeni_fiyat                         = ?,
                          urun_aciklama                     = ?,
                          urun_detay1                         = ?,
                          urun_detay2                         = ?,
                          urun_detay3                         = ?,
                          urun_detay4                         = ?,
                          urun_detay5                         = ?,
                          urun_detay6                         = ?,
                          urun_detay7                         = ?,
                          urun_detay8                     = ?,
                          urun_detay9                          = ?,
                          urun_detay10                    = ? where urun_id = ?
                    
                    ");
                    
                    $update = $guncelle->execute(
                    array($urun_link,$urun_ekleyen,$urun_kodu,$urun_oneri,$urun_stok,$urun_adi,$urun_marka,$urun_durum,$urun_kategori,$urun_gorsel1,$urun_gorsel2,$urun_gorsel3,$urun_gorsel4,$eski_fiyat,$yeni_fiyat,
                    $urun_aciklama,$urun_detay1,$urun_detay2,$urun_detay3,$urun_detay4,$urun_detay5,$urun_detay6,$urun_detay7,$urun_detay8,$urun_detay9,$urun_detay10,$urun_id));
                    
                    if($update){
                        
                        echo '<div class="alert alert-success">Karşılaşma Başarıyla Güncellendi!</div>';
                        echo '<div class="alert alert-warning"><a href="blog.php">Bir Önceki Sayfaya Dönmek İçin Tıklayın!</a></div>';
                        
                        
                    }else {
                        
                        echo '<div class="alert alert-danger">Karşılaşma Güncellenirken Bir Hata Oluştu Daha Sonra Tekrar Deneyin!</div>';
                        echo '<div class="alert alert-success"><a href="blog.php">Bir Önceki Sayfaya Dönmek İçin Tıklayın!</a></div>';
                        
                    }
                }
                
                
            }else {
                
                ?>
                
                                
                <div class="col-lg-12 col-md-12">
                            <div class="card">
                            <div class="header">
                            <h5 class="title">Ürün Adı : <span style="color:red;" ><?php echo $m["urun_adi"];?></span></h5>
                            <h5 class="title">Ürünü Ekleyen : <span style="color:red;" ><?php echo $m["urun_ekleyen"];?></span> </h5>
                            </div>
                            <div class="content">
                            <form action="" method="post">
                            
                            <hr/>
                            <h4 class="title" style="text-align:center;">Ürün Görselleri</h4>
                            <h5 class="title" style="text-align:center;">Ürün Görsel Önizlemesi</h5>
                            <hr/>                            

                            <div class="row">
                            
                            <div class="col-md-3">
                            <div class="form-group">
                            <label>Kapak Görseli : </label>
                            <img src="<?php echo $m["urun_gorsel1"];?>" height="100" width="150">
                            </div>
                            </div>
                            
                            <div class="col-md-3">
                            <div class="form-group">
                            <label>Ürün Görsel 2 : </label>
                            <img src="<?php echo $m["urun_gorsel2"];?>" height="100" width="150">
                            </div>
                            </div>
                            
                            <div class="col-md-3">
                            <div class="form-group">
                            <label>Ürün Görsel 3 :</label>
                            <img src="<?php echo $m["urun_gorsel3"];?>" height="100" width="150">
                            </div>
                            </div>
                            
                            <div class="col-md-3">
                            <div class="form-group">
                            <label>Ürün Görsel 4 :</label>
                            <img src="<?php echo $m["urun_gorsel4"];?>" height="100" width="150">
                            </div>
                            </div>
                            </div>    
                            
                            <hr/>
                            <h4 class="title" style="text-align:center;">Mağaza ve Ürün</h4>
                            <h5 class="title" style="text-align:center;">Sistem Ayarları</h5>
                            <hr/>                            
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Link</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_link"];?>"  name="urun_link" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Ekleyen <span style="font-size:11px; color:red;">Giriş yapan kişi adına otomatik eklenmektedir. Değiştirilemez!</span></label>
                            <div class="form-group">
                            <select name="urun_ekleyen" style="border-color: #1c1c1c;"  id="" class="form-control border-input">
                            <option value="<?php echo $m["urun_ekleyen"];?>"><?php echo $m["urun_ekleyen"];?></option>                            
                            </select>
                            </div>                            
                            </div>
                            </div>                        
                            </div>

                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Kodu</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_kodu"];?>" name="urun_kodu" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Öneri <span style="font-size:11px; color:red;">Ürünlerin nerede gözükeceğini belirler.</span></label>
                            <div class="form-group">
                            
                            <select name="urun_oneri" style="border-color: #1c1c1c;"  id="" class="form-control border-input">
                            <option value="yeniurun"           <?php echo $m["urun_oneri"] == "yeniurun" ?           'selected' : null;?>>Yeni Ürün</option>
                            <option value="kampanyaurun"       <?php echo $m["urun_oneri"] == "kampanyaurun" ?         'selected' : null;?>>Kampanya Ürünü</option>
                            <option value="tavsiyeurun"      <?php echo $m["urun_oneri"] == "tavsiyeurun" ?       'selected' : null;?>>Tavsiye Ürünü</option>
                            <option value="benzerurun"           <?php echo $m["urun_oneri"] == "benzerurun" ?       'selected' : null;?>>Benzer Ürün</option>    
                            </select>
                            
                            </div>                            
                            </div>
                            </div>                        
                            </div>

                            <div class="row">
                            <div class="col-md-12">
                            <div class="form-group">
                            <label>Ürün Stok Durumu</label>
                            <div class="form-group">
                            <select name="urun_stok" style="border-color: #1c1c1c;" id="" class="form-control border-input">
                            <option value="stokvar"      <?php echo $m["urun_stok"] == "stokvar" ?       'selected' : null;?>>Stokta Var</option>
                            <option value="stokyok"       <?php echo $m["urun_stok"] == "stokyok" ?         'selected' : null;?>>Stokta Yok</option>
                            <option value="uruniptal"      <?php echo $m["urun_stok"] == "uruniptal" ?       'selected' : null;?>>Ürün Satışa Kapalı</option>
                            </select>
                            
                            </div>                            
                            </div>
                            </div>                        
                            </div>                                

                            <hr/>
                            <h4 class="title" style="text-align:center;">Ürün Bilgileri</h4>
                            <h5 class="title" style="text-align:center;">Ürünü tanımlayın</h5>
                            <hr/>
                            

                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Adı</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_link"];?>" name="urun_adi" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Marka</label>
                            <div class="form-group">
                            <select name="urun_marka" style="border-color: #1c1c1c;"  id="" class="form-control border-input">
                            <option value="Msi"           <?php echo $m["urun_kategori"] == "Msi" ?           'selected' : null;?>>Msi</option>
                            <option value="Asus"           <?php echo $m["urun_kategori"] == "Asus" ?         'selected' : null;?>>Asus</option>
                            <option value="Gigabyte"      <?php echo $m["urun_kategori"] == "Gigabyte" ?     'selected' : null;?>>Gigabyte</option>
                            <option value="Zotac"            <?php echo $m["urun_kategori"] == "Zotac" ?         'selected' : null;?>>Zotac</option>
                            <option value="inno3d"           <?php echo $m["urun_kategori"] == "inno3d" ?       'selected' : null;?>>İnno3d</option>
                            <option value="Pny"           <?php echo $m["urun_kategori"] == "Pny" ?             'selected' : null;?>>Pny</option>
                            <option value="Palit"           <?php echo $m["urun_kategori"] == "Palit" ?         'selected' : null;?>>Palit</option>
                            <option value="diger"          <?php echo $m["urun_kategori"] == "diger" ?           'selected' : null;?>>Diğer</option>
                            </select>
                            </div>                            
                            
                            </div>
                            </div>                        
                            </div>        
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Kampanya Adı <span style="font-size:11px; color:red;">Kampanya yoksa boş bırakılabilir.</span></label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_link"];?>" name="urun_durum" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Kategori</label>
                            
                            <div class="form-group">
                            <select name="urun_kategori" style="border-color: #1c1c1c;" id="" class="form-control border-input">
                            <option value="ekrankarti"      <?php echo $m["urun_kategori"] == "ekrankarti" ?   'selected' : null;?>>Ekran Kartı</option>
                            <option value="powersupply"  <?php echo $m["urun_kategori"] == "powersupply" ?     'selected' : null;?>>power Supply</option>
                            <option value="anakart"      <?php echo $m["urun_kategori"] == "anakart" ?       'selected' : null;?>>Anakart</option>
                            <option value="islemci"       <?php echo $m["urun_kategori"] == "islemci" ?         'selected' : null;?>>İşlemci</option>
                            <option value="ram"           <?php echo $m["urun_kategori"] == "ram" ?           'selected' : null;?>>Ram</option>
                            <option value="rizer"           <?php echo $m["urun_kategori"] == "rizer" ?         'selected' : null;?>>Rizer</option>
                            <option value="diger"          <?php echo $m["urun_kategori"] == "diger" ?           'selected' : null;?>>Diğer</option>
                            </select>
                            </div>                                    
                            </div>
                            
                            </div>                        
                            </div>    
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Kapak Görseli</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_gorsel1"];?>" name="urun_gorsel1" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Görseli 2 </label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_gorsel2"];?>" name="urun_gorsel2" >
                            </div>
                            </div>
                            </div>    
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Görseli 3</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_gorsel3"];?>" name="urun_gorsel3" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Ürün Görseli 4</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_gorsel4"];?>" name="urun_gorsel4" >
                            </div>
                            </div>
                            </div>    
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Güncel Fiyat</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["eski_fiyat"];?>" name="eski_fiyat" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>İndirimli Fiyatı <span style="font-size:11px; color:red;">İndirim yoksa boş bırakılabilir.</span></label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["yeni_fiyat"];?>" name="yeni_fiyat" >
                            </div>
                            </div>
                            </div>    
                            
                            <hr/>
                            <h4 class="title" style="text-align:center;">Ürün Detayları</h4>
                            <h5 class="title" style="text-align:center;">Ürünün Teknik Özellikleri</h5>
                            <hr/>
                            

                            
                            <div class="row">    
                            <div class="col-md-12">
                            <div class="form-group">
                            <label for="exampleInputEmail1">Ürün Açıklaması</label>
                            <textarea type="text" style="border-color: #1c1c1c;"  class="form-control border-input" name="urun_aciklama" ><?php echo $m["urun_aciklama"];?></textarea>
                            </div>        
                            </div>                                
                            </div>
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik Başlık</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay1"];?>" name="urun_detay1" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik İçerik</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay2"];?>" name="urun_detay2" >
                            </div>
                            </div>
                            </div>
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik Başlık</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay3"];?>" name="urun_detay3" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik İçerik</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay4"];?>" name="urun_detay4" >
                            </div>
                            </div>
                            </div>                            
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik Başlık</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay5"];?>" name="urun_detay5" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik İçerik</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay6"];?>" name="urun_detay6" >
                            </div>
                            </div>
                            </div>
                            
                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik Başlık</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay7"];?>" name="urun_detay7" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik İçerik</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay8"];?>" name="urun_detay8" >
                            </div>
                            </div>
                            </div>

                            <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik Başlık</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay9"];?>" name="urun_detay9" >
                            </div>
                            </div>
                            <div class="col-md-6">
                            <div class="form-group">
                            <label>Özellik İçerik</label>
                            <input type="text" style="border-color: #1c1c1c;"  class="form-control border-input" value="<?php echo $m["urun_detay10"];?>" name="urun_detay10" >
                            </div>
                            </div>
                            </div>    
        
                            </div>

                            <div class="text-center">
                            <button type="submit" class="btn btn-info btn-fill btn-wd">Ürünü Güncelle</button> 
                            </div><br/>
                            <div class="clearfix"></div>
                            </form>
                            </div>
                            </div>
                            </div>
                            
                    <?php
                
            }
            
            ?>
            </div>