Home    Back    Forward    Refresh    txtSQL Homepage

last_error
Purpose: To print the last error message
txtSQL >= 1.0.0
void last_error()

This function will print the last error message that txtSQL issued

Note- To retrieve the last error rather than print it, use get_last_error()


Example 29: last_error() Copy to clipboard
<?php
$sql
->strict(0);

if ( !
$sql->selectdb('testDb') )
{
    
$sql->last_error();
    die();
}
?>


User Comments - last_error
No comments posted yet;
Last Page Next Page

'Language Reference'

User Functions

Database Functions

Data Manipulation Functions

Table Functions

Error Handling Functions
  • strict
  • get_last_error
  • last_error
  • error_dump

    SQL Syntax

  • [ txtSQL Documentation powered by txtSQL | 6 SQL Queries ]