= 32323 && isset($field_fulltext)) { $fulltext_cnt = count($field_fulltext); for ($i = 0; $i < $fulltext_cnt; $i++) { $j = $field_fulltext[$i]; $fulltext .= PMA_backquote($field_name[$j]) . ', '; } // end for $fulltext = ereg_replace(', $', '', $fulltext); if (!empty($fulltext)) { $sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' ADD FULLTEXT (' . $fulltext . ')'; $result = PMA_mysql_query($sql_query) or PMA_mysqlDie('', '', '', $err_url); $sql_query_cpy .= "\n" . $sql_query . ';'; } } // end if // garvin: If comments were sent, enable relation stuff require('./libraries/relation.lib.php3'); require('./libraries/transformations.lib.php3'); $cfgRelation = PMA_getRelationsParam(); // garvin: Update comment table, if a comment was set. if (isset($field_comments) && is_array($field_comments) && $cfgRelation['commwork']) { @reset($field_comments); while(list($fieldindex, $fieldcomment) = each($field_comments)) { PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment); } } // garvin: Update comment table for mime types [MIME] if (isset($field_mimetype) && is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME']) { @reset($field_mimetype); while(list($fieldindex, $mimetype) = each($field_mimetype)) { PMA_setMIME($db, $table, $field_name[$fieldindex], $mimetype, $field_transformation[$fieldindex], $field_transformation_options[$fieldindex]); } } // Go back to the structure sub-page $sql_query = $sql_query_cpy; unset($sql_query_cpy); $message = $strTable . ' ' . htmlspecialchars($table) . ' ' . $strHasBeenAltered; include('./tbl_properties_structure.php3'); exit(); } else { PMA_mysqlDie('', '', '', $err_url, FALSE); // garvin: An error happened while inserting/updating a table definition. // to prevent total loss of that data, we embed the form once again. // The variable $regenerate will be used to restore data in tbl_properties.inc.php3 $num_fields = $orig_num_fields; if (isset($orig_after_field)) { $after_field = $orig_after_field; } $regenerate = true; } } // end do alter table /** * Displays the form used to define the new field */ if ($abort == FALSE) { $action = 'tbl_addfield.php3'; include('./tbl_properties.inc.php3'); // Diplays the footer echo "\n"; include('./footer.inc.php3'); } ?>