Support » Plugins and Hacks » [Resolved] Error with $wpdb->get_results

[Resolved] Error with $wpdb->get_results

Viewing 1 replies (of 1 total)
  • Plugin Author Jamie


    you will need to reference the global $wpdb before running your code.

    global $wpdb;
    $result = $wpdb->get_results($query)

    if you have not included the global reference, the $wpdb var will not be set to an instance of the db class.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Error with $wpdb->get_results’ is closed to new replies.