I have a custom wordpress table(my_table). And i am inserting,updating all that good stuff to it. When i try to use
$wpdb->get_results("SELECT * FROM $wpdb->my_table",ARRAY_A);
or
$wpdb->get_results("SELECT * FROM my_table",ARRAY_A);
I get this error
WordPress database error: [Table 'mydatabase.my_table' doesn't exist]
SELECT * FROM my_table
I have tried to add my_table to wp-db.php as well but i still receive this error.
- Yes the table is in the database
- There is data in the table
Is their a config option of i need to change or somewhere else where i need to add my table name? I cannot find it for some reason.
full error
WordPress database error Table 'mydatabase.mytable' doesn't exist for query SELECT * FROM mytable made by do_action, call_user_func_array, promos
SELECT * FROM wp_optionsso you can see if the other WordPress tables are found?