Hello everybody,
I wondering if somebody could check/help me with this code.
I am trying to do an update query with mysql.
When I use this code nothing is happening and no error
AutoIt
If $OPT_TestResults = 1 then If Not _EzMySql_Startup() Then MsgBox(0, "Error Starting MySql", "Error: "& @error & @CR & "Error string: " & _EzMySql_ErrMsg()) Exit EndIf ; READ connection values from ini file Global $config_file = @ScriptDir & "\etc\config.ini" Global $extractfile = IniRead($config_file, "NEMO", "extractfile","") Global $User = IniRead($config_file, "NEMO", "Username","") Global $Pass = IniRead($config_file, "NEMO", "Password","") Global $Database = IniRead($config_file, "NEMO", "Database","") Global $MySQLServerName = IniRead($config_file, "NEMO", "mysqlservername","") _EzMySql_Open($MySQLServerName, $User, $Pass, $Database) $aOK = "update richiest set flgpreana='I' where flgstatu IN ('I','L');" ;_EzMySql_Exec($aOK) $number = _EzMySql_FetchNames() MsgBox(64, "Update information: ", "Total number of records that where send: " & $number, 10) EndIf
Many thanks for all your help..
Kindly regards
Koen