Use Author Ids or Names to echo different output inside loop

<?php if (get_the_author_meta('ID') == 7) : ?>
    Do something for user with ID 7.
<?php else : ?>
    Do something for anybody else.
<?php  endif; ?>

Try this, where 7 is the ID of the user.

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