Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[PHP HELP] User Rank
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="bodge" data-source="post: 234945" data-attributes="member: 8655"><p>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</p><p></p><p>Rank code</p><p>[CODE]$rank = mysql_query("SELECT rank FROM users WHERE id = '".$_SESSION['id']."'") or die(mysql_error());[/CODE]</p><p></p><p>PHP code</p><p></p><p>[CODE]<?php if ($rank > 3) echo "lol"; ?>[/CODE]</p><p></p><p>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.</p></blockquote><p></p>
[QUOTE="bodge, post: 234945, member: 8655"] 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 [CODE]$rank = mysql_query("SELECT rank FROM users WHERE id = '".$_SESSION['id']."'") or die(mysql_error());[/CODE] PHP code [CODE]<?php if ($rank > 3) echo "lol"; ?>[/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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[PHP HELP] User Rank
Top