function add_group() { global $name, $pass, $gruppe; global $table_accounts, $table_banner, $table_groups, $table_stats, $datei_endung; $sql = "select name from $table_groups"; $sql_id = mysql_query($sql); while($group_name = mysql_fetch_row($sql_id)) { $groups[] = $group_name[0]; } $fehler = 0; for($i=0;$i<=count($groups);$i++) { if($groups[$i] == $gruppe) { $fehler = 1; } } if($fehler == 0) { $sql = "insert into $table_groups (name,accounts) values ('$gruppe','')"; mysql_query($sql); echo "