If put in text box username (a) and password (a) app say invalid column name "a"
Line 10 problem....some help?
- private void prijava()
- {
- SqlConnection myConnection = new SqlConnection(cs);
- String command = "SELECT id FROM osobe_korisnici where korisnicko_ime = " + korisnikTextBox.Text + "";
- myConnection.Open();
- SqlCommand myCommand = new SqlCommand(command, myConnection);
- korisnikId = Int32.Parse(myCommand.ExecuteScalar().ToString());

Nitin SontakkeRank #264 · 9.6K reputationPosted May 23, 2018, 9:40 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 23, 2018, 9:46 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 23, 2018, 9:47 PM EDT
Goran BibicRank #993 · 2K reputationPosted May 23, 2018, 9:43 PM EDT
Goran BibicRank #993 · 2K reputationPosted May 23, 2018, 9:59 PM EDT