I have a little trouble using C# combobox with MySql
So, to begin with... I have combobox and button on a form. After submitting a form, executes MySql query like :
"select * from db1.users where login='"+combobox.SelectedIndex+"')";
It works great, But.... if we submit the first element of combobox - MySql FOREIGN KEY problem occures (= NULL and so on).
Any Ideas how to give him know, that first element from combobox isn't NULL ?