any way to access variables from within post editor?

There is no built-in mechanism to access php in the post editor. The best solution would be to create a custom shortcode which you can use to access the variable. This is probably the safest and most secure method available.

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