D Dobby Member Nov 8, 2010 156 5 Nov 28, 2012 #1 How do i set a certain menu to show only if a user that logs in as a rank of 2? Could someone help me with the code because im really stuck
How do i set a certain menu to show only if a user that logs in as a rank of 2? Could someone help me with the code because im really stuck
Li1M0ST3Rz I <3 Bianca Sep 13, 2010 269 166 Nov 28, 2012 #2 i use PHP: <?php // coded by Li1M0ST3Rz include 'config.php'; $connection = mysql_query("SELECT * FROM users"); while($row = mysql_fetch_array($connection)) if($row['rank'] == 2): { // code here } endif; ?> Upvote 0 Downvote
i use PHP: <?php // coded by Li1M0ST3Rz include 'config.php'; $connection = mysql_query("SELECT * FROM users"); while($row = mysql_fetch_array($connection)) if($row['rank'] == 2): { // code here } endif; ?>