'; echo '
'; echo ''; echo 'Search whole database for:
'; echo 'Replace with this string:

'; echo '
'; echo '
'; echo ''; print_simple_box_end(); die; } if (!$tables = $db->Metatables() ) { // No tables yet at all. error("no tables"); } print_simple_box_start('center'); foreach ($tables as $table) { if (in_array($table, array($CFG->prefix.'config'))) { // Don't process these continue; } if ($columns = $db->MetaColumns($table, false)) { foreach ($columns as $column => $data) { if (in_array($data->type, array('text','mediumtext','longtext','varchar'))) { // Text stuff only $db->debug = true; execute_sql("UPDATE {$CFG->prefix}$table SET $column = REPLACE($column, '$search', '$replace');"); $db->debug = false; } } } } print_simple_box_end(); print_continue('index.php'); ?>