I am a new c sharp programmer and I was looking at this code:
Expand|Select|Wrap|Line Numbers
- private void button1_Click(object sender, EventArgs e)
- {
- string input = textBox3.Text;
- connectdatabase();
- string wow = "SELECT `CustomerName` FROM `CustomerInfo`";
- MySqlCommand wowcmd = new MySqlCommand(wow, connection);
- MySqlDataReader Reader;
- Reader = wowcmd.ExecuteReader();
- while (Reader.Read())
- {
- if (input == Convert.ToString(Reader))
- {
- textBox5.Text = Convert.ToString(Reader);
- }
- }
- }
- Post Reply
My table contents are: username
First name
Last name
Position
Employee Id
Airline
If you do this it would be greatly appreciated