PDOStatement->errorCode() Fetch the SQLSTATE associated with the last operation on the statement handle &reftitle.description; PDOStatement stringerrorCode &reftitle.returnvalues; Identical to , except that only retrieves error codes for operations performed with PDOStatement objects. &reftitle.examples; Retrieving a SQLSTATE code prepare('SELECT skull FROM bones'); $err->execute(); echo "\nPDOStatement::errorCode(): "; print $err->errorCode(); ?> ]]> &example.outputs; &reftitle.seealso;