Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php pdo error handling

$database -> errorInfo()[0] # SQLSTATE error code (a five characters alphanumeric identifier defined in the ANSI SQL standard).
$database -> errorInfo()[1] # Driver-specific error code.
$database -> errorInfo()[2] # Driver-specific error message.
Comment

error pdo php Exception

// very simple explination .

try{
  codeA... }
catch(EXCEPTION $ex){
  codeB....

}

//the code in the block Catch excuted if there is an erro in the codeA in the block TRY

  
  
Comment

PREVIOUS NEXT
Code Example
Php :: bootstrap pagination laravel 
Php :: laravel 5 use env variable in blade 
Php :: add execute time php 
Php :: check for headers laravel 
Php :: php return function result to variable 
Php :: php preg match space or start of string 
Php :: array of dates laravel 
Php :: cache an array 
Php :: php print all woocommerce products 
Php :: php is int 
Php :: call to a member function setcookie() on null laravel middleware 
Php :: php remove control characters from string 
Php :: How to disable Gutenberg / block editor for certain post types 
Php :: php json decoding as string incorrectly 
Php :: php example 
Php :: upgrade php7 to php 8 xampp 
Php :: time function in php 
Php :: not get child all data in relationship with parent laravel eloquent 
Php :: unset php 
Php :: post php 
Php :: phpmyadmin add foreign key 
Php :: return two variables php 
Php :: docker : from php alpine 
Php :: How to order by using id with firstWhere in laravel 
Php :: grouping routes based on controller laravel 
Php :: spatie laravel activity log 
Php :: adding data dynamically to empty array in php 
Php :: php function uppercase first letter 
Php :: laravel check if email is real 
Php :: date hour php 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =