🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Burak Kemal KOYUNCU / C# / sql ile ile admin giriş paneli oluşturma - şifre ile giriş yapma

1-) C# - sql ile ile admin giriş paneli oluşturma - şifre ile giriş yapma

 

 

 baglanti.Open();

            SqlCommand komut =new SqlCommand("Select * from adm where kullanıcı=@p1 and sifre=@p2", baglanti);

            komut.Parameters.AddWithValue("@p1",textBox1.Text);

            komut.Parameters.AddWithValue("@p2",textBox2.Text);

            SqlDataReader da = komut.ExecuteReader();

            if(da.Read())

            {

                MessageBox.Show("Giriş doğru yapıldı");

            }

            else

            {

                MessageBox.Show("Yanlış giriş yapıldı");

            }

            baglanti.Close();

 2021 Ocak 21 Perşembe
 510