categories.cat_ID FROM $wpdb->categories, $wpdb->post2cat WHERE " . "$wpdb->categories.cat_ID = $wpdb->post2cat.category_id AND $wpdb->post2cat.post_id = '$post_ID' AND " . "$wpdb->categories.cat_name = '$linkfestCat'"; $cats_found = $wpdb->get_row($query_text); if ($cats_found) { // This post is eligible. Get its ping history. $ping_data = $wpdb->get_row("SELECT to_ping, pinged FROM $wpdb->posts WHERE ID = '$post_ID'"); // See if we've already done backping stuff. $mass_ping = "$ping_data->to_ping $ping_data->pinged"; $result = stristr($linkfestPing, $mass_ping); if ($result === FALSE) { // We haven't, so we do it now. $new_pings = "$ping_data->to_ping $linkfestPing"; $wpdb->query("UPDATE $wpdb->posts SET to_ping = '$new_pings' WHERE ID = '$post_ID'"); } } } // Display the options panel and update the category name. function ferdy_options_subpanel() { if (isset($_POST['info_update'])) { $newCat = $_POST['new_cat']; update_option('ferdy_cat', $newCat); echo("

New category is $newCat.

"); } $oldCat = ferdy_get_cat(); ?>

Linkfest Category Name

'); ?>