WPMU get blog id

function lmc_get_band_description($subdomain){
global $wpdb;
$path = $subdomain . str_replace('http://','.', get_blog_option(1,'siteurl'));
$lmcb_band_id = $wpdb->get_results("SELECT * FROM wp_blogs WHERE domain = '$path'");
echo $lmcb_band_id[0]->blog_id;
}

0 Comments

You must be logged in to post a comment.