PHP in WordPress?

You can use everything that is available in PHP, as WordPress is a script depending on PHP.

The only limitations you have are set by your version of PHP, and if you run huge scripts, your server configuration.

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