" . lang('Unable to operate database') . ": " . htmlspecialchars($error) . "

\n"; $name = $_POST["name"]; $collate = $_POST["collation"]; } else { $name = $_GET["db"]; $collate = array(); if (strlen($_GET["db"]) && ($result = mysql_query("SHOW CREATE DATABASE " . idf_escape($_GET["db"])))) { if (preg_match('~ COLLATE ([^ ]+)~', mysql_result($result, 0, 1), $match)) { $collate = $match[1]; } mysql_free_result($result); } } ?>