wpdb in a plugin
-
how do I use the wpdb class within a plugin?
I included the class…
include_once(ABSPATH.’/wp-includes/wp-db.php’);then in the code I have…
$result = $wpdb->get_row(“SELECT SQL STATMENT”);…which throws a “Fatal error: Call to a member function on a non-object in …”
Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wpdb in a plugin’ is closed to new replies.