- fix SQL syntax (';' was missing)

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@43 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 17 years ago
parent 0281911724
commit ae9e1d4cbe

@ -79,7 +79,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
{ {
while ($row = db_array ($result['result'])) while ($row = db_array ($result['result']))
{ {
fwrite ($fh, "$row[1]\n\n"); fwrite ($fh, "$row[1];\n\n");
} }
} }
} }
@ -97,7 +97,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
$values[] = $val; $values[] = $val;
} }
fwrite ($fh, "INSERT INTO ". $tables[$i] . " (". implode (',',$fields) . ") VALUES ('" . implode ('\',\'',$values) . "')\n"); fwrite ($fh, "INSERT INTO ". $tables[$i] . " (". implode (',',$fields) . ") VALUES ('" . implode ('\',\'',$values) . "');\n");
$fields = ""; $fields = "";
$values = ""; $values = "";
} }

Loading…
Cancel
Save