I am new to programming and following instructions in a couple of books and the wordpress codex. I am attempting to access a custom database using the $wpdb object. This is being done locally. I get the following error.
Notice: Undefined property: wpdb::$national_re_trends in C:\wamp\www\wordpress\wp-includes\wp-db.php on line 68
Also get this:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] SELECT * FROM
Here is the query:
global $wpdb;
$stuff = $wpdb->get_results("SELECT * FROM $wpdb->national_re_trends" );
print_r($stuff);
Here is my database table:
I am sure this is some newb stuff but if someone could help, I would be grateful!