SqlConnection baglanti = new SqlConnection(cs1); try { if (baglanti.State == ConnectionState.Closed) baglanti.Open(); string kayit = "INSERT INTO aranan_urun(urunadi,stok_kodu,sayac,fiyat,resim) SELECT AÇIKLAMA, KOD,'1' ,KDV_DAHİL_FİYAT, 'images/urunler/" + arananurun + ".jpg' from WEB_URUN where KOD = '" + arananurun + "'"; SqlCommand komut = new SqlCommand(kayit, baglanti); komut.ExecuteNonQuery(); baglanti.Close(); } catch (Exception hata) { }
Hiç yorum yok:
Yorum Gönder