MySqlCommand cmdd = new MySqlCommand("SELECT * from giris where ID = '21'", baglanti); int Count = Convert.ToInt32(cmdd.ExecuteScalar()); if (Count != 0) { MySqlDataReader oku = cmdd.ExecuteReader(); while (oku.Read()) { label3.Text = oku["kullanici_giris"].ToString(); label4.Text = oku["kullanici_sifre"].ToString(); } baglanti.Close(); } }