lib/ezdb/classes/ezmysqlidb.php
function setError( $connection = false )
    {
        if ( $this->IsConnected )
        {
            if ( $connection === false )
                $connection = $this->DBConnection;

            if ( $connection instanceof MySQLi )
            {
                $this->ErrorMessage = mysqli_error( $connection );
                $this->ErrorNumber = mysqli_errno( $connection );
            }
        }
        else
        {
            $this->ErrorMessage = mysqli_connect_error();
            $this->ErrorNumber = mysqli_connect_errno();
        }
    }
function setError( $connection = false )
    {
        if ( $this->IsConnected )
        {
            if ( $connection === false )
                $connection = $this->DBConnection;

            if ( $connection instanceof MySQLi )
            {
                $this->ErrorMessage = mysqli_error( $connection );
                $this->ErrorNumber = mysqli_errno( $connection );
            }
        }
        else
        {
            $this->ErrorMessage = mysqli_connect_error();
            $this->ErrorNumber = mysqli_connect_errno();
        }
    }
function setError ( $ connection = false ) { if ( $ this -> IsConnected ) { if ( $ connection === false ) $ connection = $ this -> DBConnection ; if ( $ connection instanceof MySQLi ) { $ this -> ErrorMessage = mysqli_error ( $ connection ) ; $ this -> ErrorNumber = mysqli_errno ( $ connection ) ; } } else { $ this -> ErrorMessage = mysqli_connect_error ( ) ; $ this -> ErrorNumber = mysqli_connect_errno ( ) ; } }
Sets the internal error messages & number
@param MySQLi $connection database connection handle, overrides the current one if given
Sets the internal error messages & number