First i want u guys to know im just a beginer about c# and stuff...
Second, u will notice that im not so good about english typing >.<
ive coded a LOTF source and made my own custom server
Now im developing a VIP system. i made many things work but theres still something i couldnt code then i came to ask for help.
Definition:i want to make a form connected to db for VIP member login and get the server upgrades and so on.
im working with my friend but we got some troubles with the code
all we need is get the form connected to DB and indentify the ids and passes
theres the coe we made:
Second, u will notice that im not so good about english typing >.<
ive coded a LOTF source and made my own custom server
Now im developing a VIP system. i made many things work but theres still something i couldnt code then i came to ask for help.
Definition:i want to make a form connected to db for VIP member login and get the server upgrades and so on.
im working with my friend but we got some troubles with the code
all we need is get the form connected to DB and indentify the ids and passes
theres the coe we made:
Code:
string User = "";
string Pass = "";
MySqlCommand Command = new MySqlCommand("SELECT * From `UserIds` SET `Pass` = '" + Pass + "' WHERE `User` = '" + User + "'", DataBase.NewConnection);
Command.ExecuteNonQuery();
if (textBox1.Text == "" && textBox2.Text == "")
{
MessageBox.Show("logged sucessfully!!", "Ready", MessageBoxButtons.OK, MessageBoxIcon.Information);
_thread = new Thread(new ParameterizedThreadStart(FormStart));
_thread.Start();
Close();
}
else
{
MessageBox.Show("Usuario ou Senha Esta incorreta!!", "Ready", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
catch (Exception E)
{
MessageBox.Show(E.ToString(), "Error , Voce nao consiguiu Logar!!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}
}