Display Custom Posts

plugin_dir_path(__FILE__).'review-preview.php' //this is the culprit!!

Above line works for PHP code on a plugin directory file. But the function I assume is in functions.php file of your theme directory. So you may have to give full directory path in your code like:

/home/user/var/www/wordpress/wp-content/plugins/my-plugin/review-preview.php

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