PDO MySQLI Radzenie sobie

  $errors = $stmt->errorInfo();
    echo($errors[2]);
adeleyeayodeji