1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +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:
jakubvrana
2009-12-17 15:31:24 +00:00
parent 04770321d8
commit c1130ed599
6 changed files with 14 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ if (!$error && $_POST) {
}
$result = $connection->multi_query((isset($_GET["callf"]) ? "SELECT" : "CALL") . " " . idf_escape($PROCEDURE) . "(" . implode(", ", $call) . ")");
if (!$result) {
echo "<p class='error'>" . h($connection->error) . "\n";
echo "<p class='error'>" . error() . "\n";
} else {
do {
$result = $connection->store_result();