WordPress.org

Forums

New to this -- what's wrong with it? (1 post)

  1. vsaxena
    Member
    Posted 4 years ago #

    $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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.