Linking Plugin Files to WP

You need to include the “capability” to use $wpdb in your page.

Include this in your page and see what happens.

<?php    
$path = $_SERVER['DOCUMENT_ROOT'];    
include_once $path . '/wp-load.php';

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