version 2004
MySQL_ErrorString (connID) String
| Parameter | Type | Description | |
| connID | Longint | Connection ID returned by MySQL_Connect | |
| Function result | String | Error message string |
Description
The MySQL_ErrorString command returns the MySQL error string for the last call to MySQL_Select/MySQL_Execute. It returns an empty string if the call executed successfully.
connID is a Longint returned from MySQL_Connect.
Example
MySQL_Execute(connID;"UPDATE clients SET good_one='Yes' WHERE zip_code='90210'")
$err:=MySQL_ErrorCode(connID)
If($err#0)
$errStr:=MySQL_ErrorString(connID)
ALERT("Error: "+$errStr)
End if