= "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"){ $query="INSERT INTO $new_name SELECT * FROM $table"; $result = mysql_query($query) or mysql_die(); } } else{ $sql_structure = ereg_replace("CREATE TABLE $table", "CREATE TABLE $new_name", $sql_structure); $result = mysql_query($sql_structure) or mysql_die(); } if (isset($sql_query)) $sql_query .= "\n$sql_structure"; else $sql_query = "$sql_structure"; //$sql_query .= "\n$sql_structure"; if(MYSQL_MAJOR_VERSION < "3.23" && $what == "data") get_table_content($db, $table, "my_handler"); eval("\$message = \"$strCopyTableOK\";"); require("./db_details.php3"); ?>