$query = "SELECT active, COUNT(active) FROM fas_games WHERE active=0"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $row_active = $row['active']; $row_count = $row['COUNT(active)']; if($row_active != '0'){/*Do Nothing*/}else{ if($row_active == 0){$inactive = 'Inactive Games';} if($row_active == 0 && $usrdata['user_level'] == 2){echo '<li><a href="'.$domain.'/index.php?action=admin&case=managegames"><b>'.$inactive.' ('.$row_count.')</b></a></li>';} } }
I realise you don't want to upgrade on the 'run' and it always better to keep things back until a new release. Otherwise one would be at it ALL of the time. Anyway, I upgraded that code for FAS - 'tiles' and it works fine so feel free to use it if you wish.. I even took a picture...