1234567891011121314151617181920 |
- <?php
-
-
-
-
- $sql="SELECT user_rank FROM user WHERE id_user=$id_user";
- $req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
- $user_ranking = mysql_fetch_assoc($req);
- $user_rank="$user_ranking[user_rank]";
-
- if($user_rank==1){
-
- $admin_mode = "1";
-
- }else{
- $admin_mode = "0";
- }
-
- ?>
|