Is it possible to make widget return only data (eg, array)?

Is it possible to make widget return only data (eg, array)?

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