Wanna select more ranks...

Davoz

New Member
Feb 17, 2014
6
0
Hi people,

This is a snippet where the revcms is asking which rank you've got. And if you've got a rank below rank 5 you don't have access in the panel. Now he only select rank 5 and higher.
I'm trying to select more ranks in this snippet but i'm failing a lot.
I want to select rank 5 and rank 7 and rank 9. Do you know how to fix that in this code below?
Code:
<?php } if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 5) { ?>

Please leave the fix in a comment!

Kind regards,

Davoz
 

Brad

Well-Known Member
Jun 5, 2012
2,320
993
<?php } if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) = 5,7,9) { ?>

Not 100% on this, it's been a while.
 

Users who are viewing this thread

Top