<?php
$row = mssql_fetch_assoc(mssql_query("SELECT UGradeID FROM Account WHERE UserID = '" . $_SESSION['user'] . "'"));
if($_SESSION['UGradeID'] = $row['UGradeID'] == 255){
?>
<li><a rel="nofollow" href="index.php?act=admin" class="admin_button"></a></li>
<?php } ?>
You should really...