How to create a dynamic url with post title from one website to another?

Relatively easy to achieve, just put this somewhere in your template within The Loop:

<a href="https://www.deparelevenementenservice.nl/<?php echo $post->post_name; ?>">Link text</a>

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