Why is this array not working?

Your array is actually two dimensional. It’s in two levels: an array containing an array of four strings.

Try echo $result[0][0];

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