Problem with custom user meta field

if ($authorgender = "male") {

Needs to be

if ($authorgender == "male") {

== is a comparison operator http://www.php.net/manual/en/language.operators.comparison.php

= assigns the value to the variable http://www.php.net/manual/en/language.variables.basics.php

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