Skip to content

Instantly share code, notes, and snippets.

@mboynes
Created February 15, 2012 14:11
Show Gist options
  • Save mboynes/1835968 to your computer and use it in GitHub Desktop.
Save mboynes/1835968 to your computer and use it in GitHub Desktop.
global $wpdb;
$rows = $wpdb->get_results( $wpdb->prepare( "SELECT blog_id FROM wp_blogs where blog_id > 1" ) );
foreach( $rows as $row ) {
print_r( "siteid ".$row->blog_id );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment