fix parameter count
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2001-07-24 Steve ALberty <alberty@neptunlabs.de>
|
||||
* tbl_copy.php3: fix parameter count, thanks Marc
|
||||
|
||||
2001-07-24 Geert Lund <glund@silversoft.dk>
|
||||
* danish language file code cleanup (only changed order of stings)
|
||||
* added $strQBEDel and $strQBEIns strings to all language files
|
||||
|
@@ -10,7 +10,7 @@ mysql_select_db($db);
|
||||
function my_handler($sql_insert)
|
||||
{
|
||||
global $table, $db, $new_name;
|
||||
|
||||
|
||||
$sql_insert = ereg_replace("INSERT INTO $table", "INSERT INTO $new_name", $sql_insert);
|
||||
$result = mysql_query($sql_insert) or mysql_die();
|
||||
$sql_query = $sql_insert;
|
||||
@@ -20,7 +20,7 @@ if (isset($new_name)) $new_name=trim($new_name); // Cleanup to suppress '' table
|
||||
if (isset($new_name) && $new_name!=""){
|
||||
$sql_structure = get_table_def($db, $table, "\n");
|
||||
// speedup copy table - staybyte - 22. Juni 2001
|
||||
if(MYSQL_MAJOR_VERSION >= "3.23"){
|
||||
if(MYSQL_MAJOR_VERSION >= 3.23){
|
||||
$sql_structure = ereg_replace("CREATE TABLE `$table`", "CREATE TABLE `$new_name`", $sql_structure);
|
||||
$result = mysql_query($sql_structure) or mysql_die();
|
||||
if($what == "data"){
|
||||
@@ -29,8 +29,11 @@ if (isset($new_name) && $new_name!=""){
|
||||
}
|
||||
}
|
||||
else{
|
||||
$sql_structure = ereg_replace("CREATE TABLE $table", "CREATE TABLE $new_name", $sql_structure);
|
||||
$sql_structure = ereg_replace("CREATE TABLE `$table`", "CREATE TABLE $new_name", $sql_structure);
|
||||
$result = mysql_query($sql_structure) or mysql_die();
|
||||
if ($result!=false && $what == "data"){
|
||||
get_table_content($db, $table, 0, 0, "my_handler");
|
||||
}
|
||||
}
|
||||
}
|
||||
else mysql_die($strTableEmpty);
|
||||
@@ -40,8 +43,6 @@ if (isset($sql_query))
|
||||
else
|
||||
$sql_query = "$sql_structure";
|
||||
|
||||
if(MYSQL_MAJOR_VERSION < "3.23" && $what == "data") get_table_content($db, $table, "my_handler");
|
||||
|
||||
eval("\$message = \"$strCopyTableOK\";");
|
||||
require("./db_details.php3");
|
||||
?>
|
||||
|
Reference in New Issue
Block a user