Wire database p d o error code Fetch the SQLSTATE associated with the last operation on the statement handle Usage $string = $database->errorCode(); Return value string