up
This commit is contained in:
@@ -244,8 +244,8 @@ EOT;
|
||||
|
||||
foreach (explode(';', $file) as $value) {
|
||||
if ($value && !ctype_space($value)) {
|
||||
if (!$mysqli->query($value . ';')) {
|
||||
throw new Exception('数据导入失败,错误信息:' . $mysqli->error . ',sql语句:' . $value);
|
||||
if (!$mysqli->query(trim($value))) {
|
||||
throw new Exception('<p>数据导入失败!</p><p>错误信息:<br/>' . $mysqli->error . '</p><p>sql语句:<br/>' . $value . '</p>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<main class="mdui-shadow-2">
|
||||
<h3>- 数据库结构更新准备就绪</h3>
|
||||
{if $msg}
|
||||
<p class="mdui-text-color-red">{$msg|raw}</p>
|
||||
<div class="mdui-text-color-red">{$msg|raw}</div>
|
||||
{/if}
|
||||
{if $code eq 0}
|
||||
<form action="" method="get">
|
||||
|
||||
Reference in New Issue
Block a user