Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $sql = "SELECT * FROM users where id='$key'";
- $result = mysqli_query($conn,$sql);
- $row = mysqli_fetch_array($conn,$data);
- $rank = $row['user_type'];
- if ($rank == 'user') {
- header('location: ../index.php');
- } elseif ($rank == 'vip' || $rank == 'admin') {
- echo "Hi bro u're ".$rank."";
- }
Advertisement
Add Comment
Please, Sign In to add comment