PHP.nl

odbc_error

odbc_error

Get the last error code

string **odbc_error**  $odbc

Returns a six-digit ODBC state, or an empty string if there has been no errors.

odbc

If is specified, the last state of that connection is returned, else the last state of any connection is returned. odbc

This function returns meaningful value only if last odbc query failed (i.e. returned false). odbc_exec

odbc_errormsg``odbc_exec