Try adding this to the top of your script:
require('/path/to/httpdocs/wp-blog-header.php');
global $wpdb;
Then you can run queries using:
$sql = "Your SQL Query Here";
$wpdb->get_results($sql)
Try adding this to the top of your script:
require('/path/to/httpdocs/wp-blog-header.php');
global $wpdb;
Then you can run queries using:
$sql = "Your SQL Query Here";
$wpdb->get_results($sql)