Hi Justin
Thank you for replying on this.
Actually i want to list all the sites and its id.
Then i need to find appropriate site id based on site title.
So for that i have used following code, and it works for me.
function get_selected_blog_id($title)
{
global $wpdb;
$blogs = $wpdb->get_results("SELECT * FROM $wpdb->blogs WHERE spam = '0' AND deleted = '0' and archived = '0' and public='1'");
foreach($blogs as $b)
{
$details = get_blog_details($b->blog_id);
if($details->blogname == $title)
{
return $details->blog_id;
}
}
return '';
}
Thank you RossMitchell for sharing your view and giveing suggestion on this.