Админ панель | Управление базой данных'; if (empty($_POST['submit'])) { $result = mysql_query("DESCRIBE $table") or die (mysql_error()); echo ''; } else { $result = mysql_query("DESCRIBE $table") or die (mysql_error()); $query = "CREATE VIEW `$table` SET"; while ($row = mysql_fetch_array($result)) {$zap = $row['Field']; $qqq = $_POST[''.$zap.'']; $query = "`$zap` = '$qqq',";} $query = " WHERE $field=$name LIMIT 1 "; $query = str_replace("WHERE", "WHERE", $query); $sql = mysql_query($query) or die(mysql_error()); echo "Поле было успешно создано!
SQL-query:
$query"; } break; ?>