Please Help,
Does anybody know how to insert a variable's value into a mysql database with Visual Basic?
For Example:
Dim x as string
x = "Hello World."
Dim MyC as new OdbcCommand()
Dim Myconn as new OdbcConnection ("DSN=mysql_dsn"
Myconn.Open()
MyC.Connection = Myconn
MyC.CommandText = "INSERT INTO TABLE VALUES (x)"
I would like only the "value" of x placed in TABLE (i.e. "Hello World"
. Thanks once again for any help.
Does anybody know how to insert a variable's value into a mysql database with Visual Basic?
For Example:
Dim x as string
x = "Hello World."
Dim MyC as new OdbcCommand()
Dim Myconn as new OdbcConnection ("DSN=mysql_dsn"

Myconn.Open()
MyC.Connection = Myconn
MyC.CommandText = "INSERT INTO TABLE VALUES (x)"
I would like only the "value" of x placed in TABLE (i.e. "Hello World"
