bodge
ayy lmao
- Oct 31, 2011
- 406
- 54
Hello Devbest, I am trying to code a rank system like Habbo for example if a user rank is 3 then it shows links. Here is what I've done, but it doesn't work :S
Rank code
PHP code
Users which have a rank id of 1 and 2 can see the echoed "lol" which I don't want them to see, I only want that for users with rank 3.
Rank code
Code:
$rank = mysql_query("SELECT rank FROM users WHERE id = '".$_SESSION['id']."'") or die(mysql_error());
PHP code
Code:
<?php if ($rank > 3) echo "lol"; ?>
Users which have a rank id of 1 and 2 can see the echoed "lol" which I don't want them to see, I only want that for users with rank 3.