Hey, so I'm having an issue with a website, the code below shows an ADMIN button in profile if your UGrade is 255. Well, that works.
The problem is when I first restored my DB it had 60,000 accounts and probably because of that much, it's showing ADMIN button to everyone...
Any way to fix that?
Thanks.PHP Code:<?php
ini_set('memory_limit', '-1');
$aaa = mssql_query("SELECT * FROM Account");
$ugid = mssql_fetch_assoc($aaa);
$_SESSION['UGradeID'] = $ugid['UGradeID'];?>
<?php if($_SESSION['UGradeID'] == 255){ ?>
<li><a href="index.php?act=admin" class="admin_button"></a></li>
<?php } ?>



Reply With Quote



