How do I make a shortcode?

Like this:

add_shortcode('SHORTCODE_NAME', 'SHORTCODE_NAME_shortcode');  

function SHORTCODE_NAME_shortcode() {

// PUT YOUR CODE HERE


}

Then you can just do [SHORTCODE_NAME] and whatever is in the SHORTCODE_NAME_shortcode() function will do its thing.

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