Файл: MysqlIManager/MysqlIManager/editfield2.php
Строк: 31
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Edit field <?php print("$Field"); ?></title>
<link rel="stylesheet" href="settings.css" type="text/css">
</head>
<body>
<br><br><br>
<center>
<?php
include("common.inc");
mysql_select_db($DB, $connection);
if($type == 'TEXT') {
$type = 'TEXT';
}
elseif($type == 'BLOB') {
$type = 'BLOB';
}
elseif($type == 'LONGBLOB') {
$type = 'LONGBLOB';
}
elseif($type == 'TINY') {
$type = 'TINY';
}
else {
$type = "$type($Length)";
}
if($Originalfield != $Field) {
$query2 = "ALTER TABLE $TABLE CHANGE $Originalfield $Field $type $Flag";
$result2 = mysql_query($query2) or die("Error while renaming field, please check your flags.");
print("Properties changed, new name set for field.<br>");
}
else {
$query2 = "ALTER TABLE $TABLE CHANGE $Originalfield $Originalfield $type $Flag";
$result2 = mysql_query($query2) or die("Error while saving properties, please check your flags.");
print("Properties changed, no new name set for field.<br>");
}
?>
</center>
</body>
</html>