= 32300 && !empty($comment)) { if (get_magic_quotes_gpc()) { $comment = stripslashes($comment); } $sql_query .= ' COMMENT = \'' . PMA_sqlAddslashes($comment) . '\''; $query_cpy .= "\n" . 'COMMENT = \'' . PMA_sqlAddslashes($comment) . '\''; } // Executes the query $result = PMA_mysql_query($sql_query) or PMA_mysqlDie('', '', '', $err_url); $sql_query = $query_cpy . ';'; unset($query_cpy); $message = $strTable . ' ' . htmlspecialchars($table) . ' ' . $strHasBeenCreated; // 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 (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 (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]); } } include('./' . $cfg['DefaultTabTable']); exit(); } // end do create table /** * Displays the form used to define the structure of the table */ else { if (isset($num_fields)) { $num_fields = intval($num_fields); } // No table name if (!isset($table) || trim($table) == '') { PMA_mysqlDie($strTableEmpty, '', '', $err_url); } // No valid number of fields else if (empty($num_fields) || !is_int($num_fields)) { PMA_mysqlDie($strFieldsEmpty, '', '', $err_url); } // Table name and number of fields are valid -> show the form else { if (PMA_MYSQL_INT_VERSION < 32306) { PMA_checkReservedWords($table, $err_url); } $action = 'tbl_create.php3'; include('./tbl_properties.inc.php3'); // Diplays the footer echo "\n"; include('./footer.inc.php3'); } } ?>