Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

brain fart......whats wrong with insert statement?

Status
Not open for further replies.

zzzzzeke

Programmer
Mar 1, 2004
14
US
Code:
string username = txtusername.ToString();
			string password1 = txtpassword.ToString();
			string email = txtemail.ToString();
			string query = "insert into [User] (UserName, Password, Email) VALUES  (" + username + ", '" + password1 + "', '" + email + "')";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top