public void makenewuser()
{
string constring = "Data Source =LAPTOP-3KI3JMHO; Initial Catalog = Stormz; Integrated Security = True";
using (SqlConnection con = new SqlConnection(constring))
try
{
con.Open();
SqlCommand com = new SqlCommand("INSERT INTO users('" + firstname + "','" + lastname + "','" + email + "','" + password + "','" + country + "', '" + city + "')", con);
com.ExecuteNonQuery();
con.Close();
}
catch (Exception ex)
{
Debug.WriteLine(ex);
}
}
public void makenewuser()
{
string constring = "Data Source =LAPTOP-3KI3JMHO; Initial Catalog = Stormz; Integrated Security = True";
using (SqlConnection con = new SqlConnection(constring))
try
{
con.Open();
SqlCommand com = new SqlCommand("INSERT INTO users('" + firstname + "','" + lastname + "','" + email + "','" + password + "','" + country + "', '" + city + "')", con);
com.ExecuteNonQuery();
con.Close();
}
catch (Exception ex)
{
Debug.WriteLine(ex);
}
}