mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Simplify SQL syntax errors everywhere
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1276 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -144,7 +144,7 @@ if (isset($rights["insert"])) {
|
||||
$adminer->selectLinks($table_status, $set);
|
||||
|
||||
if (!$columns) {
|
||||
echo "<p class='error'>" . lang('Unable to select the table') . ($fields ? "" : ": " . h($connection->error)) . ".\n";
|
||||
echo "<p class='error'>" . lang('Unable to select the table') . ($fields ? "" : ": " . error()) . ".\n";
|
||||
} else {
|
||||
echo "<form action='' id='form'>\n";
|
||||
echo "<div style='display: none;'>";
|
||||
@@ -165,7 +165,7 @@ if (!$columns) {
|
||||
|
||||
$result = $connection->query($query);
|
||||
if (!$result) {
|
||||
echo "<p class='error'>" . h($connection->error) . "\n";
|
||||
echo "<p class='error'>" . error() . "\n";
|
||||
} else {
|
||||
$email_fields = array();
|
||||
echo "<form action='' method='post' enctype='multipart/form-data'>\n";
|
||||
|
Reference in New Issue
Block a user