Zebra_Database::error PHP Method

error() public method

In most cases you should not need this method as any errors are reported to the {@link show_debug_console console} when the {@link debug} property is set to TRUE, or to PHP's error log file (if your environment is {@link http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors configured to do so}) when set to FALSE. If, for some reasons, none of the above is available, you can use this method to catch errors. $db->query(' SELECT * FROM users WHERE invalid_column = ? ', array($value)) or die($db->error());
Since: 2.9.1 @return void
public error ( ) : void
return void
    function error()
    {
        // a string description of the last error, or an empty string if no error occurred
        return mysqli_error($this->connection);
    }