StringBuilder();
query.Append("INSERT INTO ");
query.Append(table);
query.Append(" (nick,email,nome,datanasc,ruaenumero,bairro,cidade,cep,país,sexo,feminino,estado,home_page) VALUES (");
query.Append((nick));
query.AppendFormat(", {0}", (email));
query.AppendFormat(", {0}", (nome));
query.AppendFormat(", {0}", (datanasc));
query.AppendFormat(", {0}", (ruaenumero));
query.AppendFormat(", {0}", (bairro));
query.AppendFormat(", {0}", (cidade));
query.AppendFormat(", {0}", (cep));
query.AppendFormat(", {0}", (país));
query.AppendFormat(", {0}", (sexo));
query.AppendFormat(", {0}", (estado));
query.AppendFormat(", {0}", (home_page));
query.Append(")");
com.CommandText = query.ToString();
private
void button1_Click(object sender, System.EventArgs e)
{
string nick = "'" + txt_apelido.Text + "'";
string email = "'" + txt_email.Text + "'";
string nome = "'" + txt_nome.Text + "'";
string datanasc = "'" + textBox4.Text + "'";
string ruaenumero = "'" + textBox7.Text + "'";
string bairro = "'" + txt_ruaenumero.Text + "'";
string cidade = "'" + textBox5.Text + "'";
string cep = "'" + textBox8.Text + "'";
string país = "'" + comboBox1.Text + "'";
string sexo = "'" + radioButton1.Text + "'";
string[] texto = new string[2];
texto[0] = radioButton1.Text;
texto[1] = radioButton2.Text;
string estado = "'" + comboBox2.Text + "'";
string home_page = "'" + textBox9.Text + "'";
See my problem actual my friends.. Thank you a lot!!! and that post is a great! Thank you !! again