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