WordPress.org

Ready to get started?Download WordPress

Forums

NextGen custom query (1 post)

  1. highway7
    Member
    Posted 5 years ago #

    Hi, I am trying to do a custom query search of my wordpress database and pull in data from the NextGen gallery tables. This is my code:

    <?php

    $mylink = $wpdb->get_row("SELECT * FROM $wpdb->ngg_gallery WHERE gid = 6");

    echo $mylink->gid;

    ?>

    This returns no data. If I try the code with the links table though, it works fine. Where am I going wrong?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic