Get author id from url

On an “author” page get_query_var('author') will give you the ID.

get_queried_object() will get you considerably more author information.

$author = get_queried_object();
echo $author->ID;
// var_dump($author); // to see all of the information available.

For retrieving custom author data follow the Codex.

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