I am trying to update the mysql databse using update command ,but not able to read the values .
Dim SQLCommand As String
Dim conn As New MySqlConnection
Dim mycommand As New MySqlCommand
Dim connString As String
SQLCommand = "Update detailsofpage SET Title='" + tb2.Text + "',Explanation='" + tb3.Text + "',Searchable='" + tb4.Text + "',Questions='" + tb6.Text + "' where Form_ID='" + tb1.Text + "'"
connString = "server=localhost; user id=15secs; password=password; database=sample; pooling=false;"
'Try
conn.ConnectionString = connString
conn.Open()
'Try
mycommand.Connection = conn
mycommand.CommandText = SQLCommand
mycommand.ExecuteNonQuery()
conn.Close()
thanks
Dim SQLCommand As String
Dim conn As New MySqlConnection
Dim mycommand As New MySqlCommand
Dim connString As String
SQLCommand = "Update detailsofpage SET Title='" + tb2.Text + "',Explanation='" + tb3.Text + "',Searchable='" + tb4.Text + "',Questions='" + tb6.Text + "' where Form_ID='" + tb1.Text + "'"
connString = "server=localhost; user id=15secs; password=password; database=sample; pooling=false;"
'Try
conn.ConnectionString = connString
conn.Open()
'Try
mycommand.Connection = conn
mycommand.CommandText = SQLCommand
mycommand.ExecuteNonQuery()
conn.Close()
thanks