getting attributes in a product loop

My naive problem was because I was not noticing the attribute wasn’t being saved when I clicked save attributes. The reason it wasn’t being saved was because I wasn’t entering a value for the attrib.

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