WordPress.org

Support

Support » Plugins and Hacks » Hacks » New to this — what's wrong with it?

New to this — what's wrong with it?

  • $posts = $wpdb->get_results($wpdb->prepare(“SELECT * FROM $wpdb->posts join $wpdb->croer_posts on $wpdb->posts.id = $wpdb->croer_posts.post_id where $wpdb->croer_posts.cat_id = $catID”));

    Tnx.

    FYI – I came up with this code by using an official wordpress book in addition to an online SQL tutorial.

  • The topic ‘New to this — what's wrong with it?’ is closed to new replies.
Skip to toolbar