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';