0) $primary = ", PRIMARY KEY ($primary)"; if(!isset($index)) $index = ""; if(!isset($field_index)) $field_index = array(); for($i=0;$i 0) $index = ", INDEX ($index)"; if(!isset($unique)) $unique = ""; if(!isset($field_unique)) $field_unique = array(); for($i=0;$i 0) $unique = ", UNIQUE ($unique)"; $query_keys = $primary.$index.$unique; $query_keys = ereg_replace(", $", "", $query_keys); // echo "$query $query_keys"; $sql_query = "CREATE TABLE ".$table." (".$query." ".$query_keys.")"; //BEGIN - Table Type - 2 May 2001 - Robbat2 if(!empty($tbl_type) && ($tbl_type != "Default")) $sql_query .= " TYPE = $tbl_type"; //END - Table Type - 2 May 2001 - Robbat2 if(MYSQL_MAJOR_VERSION == "3.23" && !empty($comment)) $sql_query .= " comment = '$comment'"; $result = mysql_db_query($db, $sql_query) or mysql_die(); $message = "$strTable $table $strHasBeenCreated"; include("./tbl_properties.php3"); exit; } else { $action = "tbl_create.php3"; include("./tbl_properties.inc.php3"); } require("./footer.inc.php3"); ?>