mysqli_error in pdo code example Example: pdo mysqli error handling $errors = $stmt->errorInfo(); echo($errors[2]);