using the loop with a custom table

You should use wpdb to query the database and then insert them into the loop (loop.php).

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