Hi,
I have many times using PreparedSQLStatement on linux and its worked normal.
now I need to do it on Windows, but does not work, the code seems to be fine.
dim ps as MySQLPreparedStatement
mDB = New MySQLCommunityServer
mDB.Host = "10.10.10.1"
mDb.UserName = "admin_office"
mDb.Password = "123456"
mDB.Port = 3306
mDb.DatabaseName = "admin_shop"
If mDb.Connect Then
mIsConnected = True
MessageBox "conneceted"
Else
mIsConnected = False
End If
ps=mDB.Prepare("UPDATE livereport2 SET sales = ?, waktu=? WHERE shop = ?")
ps.BindType(0,MySQLPreparedStatement.MYSQL_TYPE_STRING)
ps.BindType(1,MySQLPreparedStatement.MYSQL_TYPE_STRING)
ps.BindType(2,MySQLPreparedStatement.MYSQL_TYPE_STRING)
ps.Bind(0,t_wad.text)
ps.Bind(1,"00:00")
ps.Bind(2,"wad")
ps.SQLExecute
I don’t immediately see a problem. What does “does not work” mean in this context? Do you get an error message? Incorrect results? Have you checked the error properties?
Hi,
I have tried to put a msgbox, but seems the code is not executed.
The Original project file was created by xojo 2014 r4.3, I do upgrading to 2021 r1.1 version, because its not running then I downgrade to 2018 r4. but still dont work.