If put in text box username (a) and password (a) app say invalid column name "a" Last line problem....some help? korisnikId = Int32.Parse(myCommand.ExecuteScalar().ToString());
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());
' " + korisnikTextBox.Text + " ' ";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)