What files are needed to get wpdb running separately outside of wordpress. I moved wp-db.php and wp-config.php and the thing works ok, but I guess it’s missing something more.
I cannot do queries like $user_count = $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->users” ); The $wpdb->users part appears blank.
What other files does wpdb rely on?
- The topic ‘What files are needed to get wpdb running separately?’ is closed to new replies.