0

I am trying to input the data from textbox1 into the section for user= but can't get the syntax right. Please help.

Console.WriteLine(sqlQuery("INSERT INTO TESTDATA (User, Status) VALUES ('edavis','Passed')"))
0

1 Answer 1

1

See this article.

http://www.aspnet101.com/2007/03/parameterized-queries-in-asp-net/

and/or this one:

https://web.archive.org/web/20210512233418/http://www.4guysfromrolla.com/webtech/092601-1.shtml

Be sure you use parameterized queries to avoid SQL injection.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.