Hello all,
I imported a new table into my WP database. I renamed the table to include the "wp_" prefix, but when I try and query that table, I don't get any results or any errors. Here is the code I am playing with:
global $wpdb;
$facility_count = $wpdb->get_var("SELECT COUNT(id) FROM $wpdb->facilities;");?>
<p><?php echo 'facility count is ' . $facility_count;?></p>
Is there some other trick besides renaming the table to include the "wp_" prefix in order to use it?