/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function update_tables() { global $wpdb; for ($x=0;$x<=216;$x++): //limit for to the last blog_id created $table='wp_'.$x.'_options'; $existe= $wpdb->get_results('SELECT * FROM '.$table.''); if ($existe) foreach($existe as $entry): if ($entry->option_name=='siteurl') { } if ($entry->option_name=='home') { $home=$entry->option_value; } endforeach; endfor; } add_action('init','update_tables');