call user-defined default tab instead of hardcoded db_details.php3

This commit is contained in:
Alexander M. Turek
2003-07-11 09:09:50 +00:00
parent 96f8327116
commit 5e064aa961
2 changed files with 11 additions and 6 deletions

View File

@@ -27,14 +27,14 @@ if (PMA_MYSQL_INT_VERSION < 32306) {
/**
* Executes the db creation sql query
*/
$local_query = 'CREATE DATABASE ' . PMA_backquote($db);
$result = PMA_mysql_query('CREATE DATABASE ' . PMA_backquote($db)) or PMA_mysqlDie('', $local_query, FALSE, $err_url);
$sql_query = 'CREATE DATABASE ' . PMA_backquote($db);
$result = PMA_mysql_query('CREATE DATABASE ' . PMA_backquote($db)) or PMA_mysqlDie('', $sql_query, FALSE, $err_url);
/**
* Displays the result and moves back to the calling page
* Displays the result and calls default page
*/
$message = $strDatabase . ' ' . htmlspecialchars($db) . ' ' . $strHasBeenCreated;
require('./db_details.php3');
require('./' . $cfg['DefaultTabDatabase']);
?>