Insert/Update values to a table after blogname option etc. is updated

well, i just found that you’ve error in your query. i’ve re-written that for you:

$wpdb->query("UPDATE `" . $wp_blogs_info . "` SET `site_title`='".$wpdb->escape($blogname)."', `site_description` = '".$wpdb->escape($blogdescr)."' where blog_id = '" . (int)$the_id . "'");