How to append short url to specific external links

Mostly from https://stackoverflow.com/questions/7118823/check-if-url-has-certain-string-with-php

Check if the url has your string, then spit something different out based on it. Perhaps something like…

$url="http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];

if (false !== strpos($url,'forms.woo.com')) {
    echo '?pageurl=" . home_url() . get_the_ID(); // there"s your page id url
} else {
    the_permalink(); // plain old permalink
}

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