From e8d9543ec4f920d8624a24c1679c04c8dafd967c Mon Sep 17 00:00:00 2001 From: n0wheremany Date: Thu, 12 Jan 2017 14:39:26 +0300 Subject: [PATCH] Update convert.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ошибка - в запросе имя базы не подставляется --- upload/convert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/convert.php b/upload/convert.php index a8991cc..9347e82 100644 --- a/upload/convert.php +++ b/upload/convert.php @@ -121,7 +121,7 @@ function step2() { CONCAT(\'ALTER TABLE `\', t.`TABLE_SCHEMA`, \'`.`\', t.`TABLE_NAME`, \'` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;\') as sqlcode FROM `information_schema`.`TABLES` t WHERE 1 - AND t.`TABLE_SCHEMA` = \'dle104win\' + AND t.`TABLE_SCHEMA` = \''.$dbname.'\' AND t.TABLE_COLLATION <> \'utf8_general_ci\' ORDER BY 1'); $step2 .= mysql_error();