note 85895 modified in pdo.errorinfo by thiago

From: Date: Tue, 23 Sep 2008 18:48:39 +0000
Subject: note 85895 modified in pdo.errorinfo by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144643@lists.php.net to get a copy of this message
Some PDO drivers return a larger array. For example, the SQL Server driver returns 5 values. For example: <?php $numRows = $db->exec("DELETE FROM [TableName] WHERE ID between 6 and 17"); print_r($db->errorInfo()); ?> Result: Array ( [0] => 00000 [1] => 0 [2] => (null) [0] (severity 0) [] [3] => 0 [4] => 0 ) --was-- Some PDO drivers return a larger array. For example, the SQL Server driver returns 5 values. For example: $numRows = $db->exec("DELETE FROM [TableName] WHERE ID between 6 and 17"); print_r($db->errorInfo()); Result: Array ( [0] => 00000 [1] => 0 [2] => (null) [0] (severity 0) [] [3] => 0 [4] => 0 ) http://php.net/manual/en/pdo.errorinfo.php

« previous php.notes (#144643) next »