How to call WordPress function other files

Let’s say that wp-load is in the folder /myproject/ of your /myproject/wp-content/themes/fount/myfolder/ tree.

From /myfolder/ you would access it with "../../../../wp-load.php".

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