function modclassement($id, $parent, $type) { if ($parent == 0) { $parent = 0; } $rub = new Rubrique(); $rub->charger($id); $rub->changer_classement($id, $type); redirige("parcourir.php?parent={$parent}"); }