Home > PHP > Function > > dbx_error()

dbx_error()

dbx_error - Report the error message of the latest function call in the module

Syntax

string dbx_error (object $link_identifier)

Arguments

  • link_identifier - The DBX link object returned by dbx_connect()

Description

dbx_error() returns the last error message.

Version

PHP 4.0.6, 5 <= 5.0.5, PECL dbx >= 1.1.0

Return value

Returns a string containing the error message from the last function call of the abstracted module (e.g. mysql module). If there are multiple connections in the same module, just the last error is given. If there are connections on different modules, the latest error is returned for the module specified by the link_identifier parameter.