array ("post", "string", ""), ); getFields($fields); foreach($_POST as $k=>$v) { $keys[$k]=$v; } $cleanrights=$mysql->available_sql_rights(); foreach($mysql->get_dblist() as $d){ $rights=array(); foreach ($cleanrights as $r) { if (isset($keys[$d['db'].'_'.$r])) { $rights[]=$r; } } //add if empty rights $mysql->set_user_rights($id,$d['db'],$rights); } $msg->raise("INFO", "mysql", _("The rights has been successfully applied to the user")); include("sql_users_list.php"); ?>