\nhier hast du die Möglichkeit, die Defaulteinstellungen für neue User einzustellen:

\n"; echo "\n"; echo "\t\n"; echo "\t\t\n\t\t\n\t\t\n"; echo "\t\n"; if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"])) { switch( $_GET["Send"]) { case "New": $SQL = "ALTER TABLE `UserCVS` ADD `". $_GET["Field"]. "` ". "CHAR( 1 ) DEFAULT '". $_GET["Default"]. "' NOT NULL"; $Erg = mysql_query( $SQL, $con); if( $Erg == 1) echo "

Create ".$_GET["Field"]. " = ". $_GET["Default"]. " succesfull

\n"; else echo "

Create ".$_GET["Field"]. " = ". $_GET["Default"]. " error...

\n". "[". mysql_error(). "]

"; break; case "Del": echo "\t\n"; echo "\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\n"; echo "\t\n"; break; case "Del sure": $SQL = "ALTER TABLE `UserCVS` DROP `". $_GET["Field"]. "` "; $Erg = mysql_query( $SQL, $con); if( $Erg == 1) echo "

Delete ".$_GET["Field"]. " succesfull

\n"; else echo "

Delete ".$_GET["Field"]. " error...

\n". "[". mysql_error(). "]

"; break; case "SetForAllUser": $SQL = "UPDATE `UserCVS` SET `". $_GET["Field"]. "`='". $_GET["Default"]. "'"; $Erg = mysql_query( $SQL, $con); if( $Erg == 1) echo "

UPDATE ".$_GET["Field"]. " = ". $_GET["Default"]. " for all Users succesfull

\n"; else echo "

UPDATE ".$_GET["Field"]. " = ". $_GET["Default"]. " for all Users error...

\n". "[". mysql_error(). "]

"; case "Save": $SQL = "ALTER TABLE `UserCVS` CHANGE `". $_GET["Field"]. "` ". "`". $_GET["Field"]. "` CHAR( 1 ) NOT NULL DEFAULT '". $_GET["Default"]. "'"; $Erg = mysql_query( $SQL, $con); if( $Erg == 1) echo "

Write ".$_GET["Field"]. " = ". $_GET["Default"]. " succesfull

\n"; else echo "

Write ".$_GET["Field"]. " = ". $_GET["Default"]. " error...

\n". "[". mysql_error(). "]

"; break; } //SWITCH } //IF( $erg = mysql_query("SHOW COLUMNS FROM `UserCVS`"); echo mysql_error(); for( $i=1; $i\n"; echo "\t\t
\n"; echo "\t\t\t\n"; echo "\t\t\t
\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\n"; echo "\t\n"; } echo "\t\n"; echo "\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\n"; echo "\t\n"; echo "
PageShow
". mysql_result( $erg, $i, "Field"). ""; if( mysql_result( $erg, $i, "Default") == "Y") echo "Y\n". "\t\t\t N"; else echo "Y\n". "\t\t\t N"; echo "\n"; echo "\t\t\t \n"; echo "\t\t\t
Y\t". "\t\t\t\tN
\n"; include ("../../includes/footer.php"); ?>