‘MyClass’ object has no attribute ‘__getitem__’

item is not a dictionary but a class so it has different syntax for accessing members. Access id this way instead:

item.id

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)