Access Level'; $replace_th = 'Access Level Outlet'; $content = str_replace($search_th, $replace_th, $content); $search_td = ' '; $replace_td = ' '; $content = str_replace($search_td, $replace_td, $content); file_put_contents('index.php', $content); echo "Users table updated to show assigned outlet.\n";